File tree Expand file tree Collapse file tree 1 file changed +19
-1
lines changed Expand file tree Collapse file tree 1 file changed +19
-1
lines changed Original file line number Diff line number Diff line change @@ -457,6 +457,25 @@ impl Foo {
457457```
458458"## ,
459459
460+ E0426 : r##"
461+ An undeclared label was used. Example of erroneous code:
462+
463+ ```
464+ loop {
465+ break 'a; // error: use of undeclared label `'a`
466+ }
467+ ```
468+
469+ Please verify you didn't misspell the label name or you did declare
470+ it. Example:
471+
472+ ```
473+ 'a: loop {
474+ break 'a; // ok!
475+ }
476+ ```
477+ "## ,
478+
460479E0428 : r##"
461480A type or module has been defined more than once. Example of erroneous
462481code:
@@ -563,7 +582,6 @@ register_diagnostics! {
563582 E0423 , // is a struct variant name, but this expression uses it like a
564583 // function name
565584 E0425 , // unresolved name
566- E0426 , // use of undeclared label
567585 E0427 , // cannot use `ref` binding mode with ...
568586 E0429 , // `self` imports are only allowed within a { } list
569587 E0434 , // can't capture dynamic environment in a fn item
You can’t perform that action at this time.
0 commit comments