diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2015-07-24 14:44:44 +0200 |
|---|---|---|
| committer | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2015-07-24 14:44:44 +0200 |
| commit | c8b9e8363a15c0476040869d2e6749018ae4a6b3 (patch) | |
| tree | 51fcbebeeacbd9dd984be52850365d8d621bb5ad | |
| parent | 9e1ea5e5ee6369128e2a3005bb78edc059fa9195 (diff) | |
| download | rust-c8b9e8363a15c0476040869d2e6749018ae4a6b3.tar.gz rust-c8b9e8363a15c0476040869d2e6749018ae4a6b3.zip | |
Add E0426 error explanation
| -rw-r--r-- | src/librustc_resolve/diagnostics.rs | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/src/librustc_resolve/diagnostics.rs b/src/librustc_resolve/diagnostics.rs index 5bce8722c94..6753507b90d 100644 --- a/src/librustc_resolve/diagnostics.rs +++ b/src/librustc_resolve/diagnostics.rs @@ -457,6 +457,25 @@ impl Foo { ``` "##, +E0426: r##" +An undeclared label was used. Example of erroneous code: + +``` +loop { + break 'a; // error: use of undeclared label `'a` +} +``` + +Please verify you didn't misspell the label name or you did declare +it. Example: + +``` +'a: loop { + break 'a; // ok! +} +``` +"##, + E0428: r##" A type or module has been defined more than once. Example of erroneous code: @@ -563,7 +582,6 @@ register_diagnostics! { E0423, // is a struct variant name, but this expression uses it like a // function name E0425, // unresolved name - E0426, // use of undeclared label E0427, // cannot use `ref` binding mode with ... E0429, // `self` imports are only allowed within a { } list E0434, // can't capture dynamic environment in a fn item |
