Add E0428 error explanation
This commit is contained in:
parent
95811546e6
commit
c13295bbc3
1 changed files with 18 additions and 1 deletions
|
|
@ -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! {
|
||||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue