summaryrefslogtreecommitdiffstats
path: root/compiler/rustc_error_codes/src/error_codes/E0428.md
blob: 38db0b4bcf96d28ae517dd01c80a0c3e8b9d94f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
A type or module has been defined more than once.

Erroneous code example:

```compile_fail,E0428
struct Bar;
struct Bar; // error: duplicate definition of value `Bar`
```

Please verify you didn't misspell the type/module's name or remove/rename the
duplicated one. Example:

```
struct Bar;
struct Bar2; // ok!
```