1 error[E0428]: the name `Foo` is defined multiple times
2 --> $DIR/issue-21546.rs:17:1
5 | ------- previous definition of the module `Foo` here
8 | ^^^^^^^^^^^ `Foo` redefined here
10 = note: `Foo` must be defined only once in the type namespace of this module
12 error[E0428]: the name `Bar` is defined multiple times
13 --> $DIR/issue-21546.rs:24:1
16 | ------- previous definition of the module `Bar` here
19 | ^^^^^^^^^^^^^^^^ `Bar` redefined here
21 = note: `Bar` must be defined only once in the type namespace of this module
23 error[E0428]: the name `Baz` is defined multiple times
24 --> $DIR/issue-21546.rs:32:1
27 | ---------------- previous definition of the type `Baz` here
30 | ^^^^^^^ `Baz` redefined here
32 = note: `Baz` must be defined only once in the type namespace of this module
34 error[E0428]: the name `Qux` is defined multiple times
35 --> $DIR/issue-21546.rs:40:1
37 LL | struct Qux { x: bool }
38 | ---------- previous definition of the type `Qux` here
41 | ^^^^^^^ `Qux` redefined here
43 = note: `Qux` must be defined only once in the type namespace of this module
45 error[E0428]: the name `Quux` is defined multiple times
46 --> $DIR/issue-21546.rs:48:1
49 | ------------ previous definition of the type `Quux` here
52 | ^^^^^^^^ `Quux` redefined here
54 = note: `Quux` must be defined only once in the type namespace of this module
56 error[E0428]: the name `Corge` is defined multiple times
57 --> $DIR/issue-21546.rs:56:1
59 LL | enum Corge { A, B }
60 | ---------- previous definition of the type `Corge` here
63 | ^^^^^^^^^ `Corge` redefined here
65 = note: `Corge` must be defined only once in the type namespace of this module
67 error: aborting due to 6 previous errors
69 For more information about this error, try `rustc --explain E0428`.