]> git.lizzy.rs Git - rust.git/blob - compiler/rustc_error_codes/src/error_codes/E0428.md
Rollup merge of #93556 - dtolnay:trailingcomma, r=cjgillot
[rust.git] / compiler / rustc_error_codes / src / error_codes / E0428.md
1 A type or module has been defined more than once.
2
3 Erroneous code example:
4
5 ```compile_fail,E0428
6 struct Bar;
7 struct Bar; // error: duplicate definition of value `Bar`
8 ```
9
10 Please verify you didn't misspell the type/module's name or remove/rename the
11 duplicated one. Example:
12
13 ```
14 struct Bar;
15 struct Bar2; // ok!
16 ```