1 error[E0428]: the name `Foo` is defined multiple times
2 --> $DIR/issue-6936.rs:5:5
5 | --------------- previous definition of the type `Foo` here
7 | ^^^^^^^ `Foo` redefined here
9 = note: `Foo` must be defined only once in the type namespace of this module
11 error[E0428]: the name `Foo` is defined multiple times
12 --> $DIR/issue-6936.rs:10:5
15 | --------------- previous definition of the type `Foo` here
17 | ^^^^^^^^^^^ `Foo` redefined here
19 = note: `Foo` must be defined only once in the type namespace of this module
21 error[E0428]: the name `Foo` is defined multiple times
22 --> $DIR/issue-6936.rs:15:5
25 | --------------- previous definition of the type `Foo` here
27 | ^^^^^^^^ `Foo` redefined here
29 = note: `Foo` must be defined only once in the type namespace of this module
31 error[E0428]: the name `Bar` is defined multiple times
32 --> $DIR/issue-6936.rs:25:5
35 | ---------------- previous definition of the type `Bar` here
37 | ^^^^^^^ `Bar` redefined here
39 = note: `Bar` must be defined only once in the type namespace of this module
41 error: aborting due to 4 previous errors
43 For more information about this error, try `rustc --explain E0428`.