Specify that break
cannot be used outside of loop *or* labeled block
This commit is contained in:
parent
09508489ef
commit
2f882c014f
14 changed files with 37 additions and 30 deletions
|
@ -956,6 +956,7 @@ pub struct OutsideLoop<'a> {
|
|||
#[label]
|
||||
pub span: Span,
|
||||
pub name: &'a str,
|
||||
pub is_break: bool,
|
||||
}
|
||||
|
||||
#[derive(Diagnostic)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue