Skip to content

Commit

Permalink
Add E0428 error explanation
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez committed Jul 21, 2015
1 parent 9581154 commit c13295b
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion src/librustc_resolve/diagnostics.rs
Expand Up @@ -380,6 +380,24 @@ impl Foo for Bar {
```
"##,

E0428: r##"
A type or module has been defined more than once. Example of erroneous
code:
```
struct Bar;
struct Bar; // error: duplicate definition of value `Bar`
```
Please verify you didn't mispelled the type/module's name or remove the
duplicated one. Example:
```
struct Bar;
struct Bar2; // ok!
```
"##,

}

register_diagnostics! {
Expand Down Expand Up @@ -415,7 +433,6 @@ register_diagnostics! {
E0425, // unresolved name
E0426, // use of undeclared label
E0427, // cannot use `ref` binding mode with ...
E0428, // duplicate definition of ...
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
Expand Down

0 comments on commit c13295b

Please sign in to comment.