tests/ui/fail/duplicated_struct.stderr
raw| 1 | error[E0428]: the name `Foo` is defined multiple times |
| 2 | --> $DIR/duplicated_struct.rs:10:5 |
| 3 | | |
| 4 | 7 | pub struct Foo; |
| 5 | | --------------- previous definition of the type `Foo` here |
| 6 | ... |
| 7 | 10 | pub struct Foo; |
| 8 | | ^^^^^^^^^^^^^^^ `Foo` redefined here |
| 9 | | |
| 10 | = note: `Foo` must be defined only once in the type namespace of this module |