Skip to content

Commit

Permalink
Add E0430 error explanation
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez committed Jul 24, 2015
1 parent 1f81002 commit 18f4e8c
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion src/librustc_resolve/diagnostics.rs
Expand Up @@ -475,6 +475,18 @@ struct Bar2; // ok!
```
"##,

E0430: r##"
The `self` import appears more than once in the list.
```
use something::{self, self}; // error: `self` import can only appear once in
// the list
```
Please verify you didn't misspell the import name or remove the duplicated
`self` import.
"##,

E0433: r##"
Invalid import. Example of erroneous code:
Expand Down Expand Up @@ -519,7 +531,6 @@ register_diagnostics! {
E0426, // use of undeclared label
E0427, // cannot use `ref` binding mode with ...
E0429, // `self` imports are only allowed within a { } list
E0430, // `self` import can only appear once in the list
E0431, // `self` import can only appear in an import list with a non-empty
// prefix
E0432, // unresolved import
Expand Down

0 comments on commit 18f4e8c

Please sign in to comment.