fork/rust
git clone https://git.julia.blue/fork/rust
49cae55760d
1.44.0
1error[E0428]: the name `Foo` is defined multiple times 2 --> $DIR/issue-6936.rs:5:5 3 | 4LL | type Foo = ::T; 5 | --------------- previous definition of the type `Foo` here 6LL | mod Foo {} 7 | ^^^^^^^ `Foo` redefined here 8 | 9 = note: `Foo` must be defined only once in the type namespace of this module 10 11error[E0428]: the name `Foo` is defined multiple times 12 --> $DIR/issue-6936.rs:10:5 13 | 14LL | type Foo = ::T; 15 | --------------- previous definition of the type `Foo` here 16LL | struct Foo; 17 | ^^^^^^^^^^^ `Foo` redefined here 18 | 19 = note: `Foo` must be defined only once in the type namespace of this module 20 21error[E0428]: the name `Foo` is defined multiple times 22 --> $DIR/issue-6936.rs:15:5 23 | 24LL | type Foo = ::T; 25 | --------------- previous definition of the type `Foo` here 26LL | enum Foo {} 27 | ^^^^^^^^ `Foo` redefined here 28 | 29 = note: `Foo` must be defined only once in the type namespace of this module 30 31error[E0428]: the name `Bar` is defined multiple times 32 --> $DIR/issue-6936.rs:25:5 33 | 34LL | type Bar<T> = T; 35 | ---------------- previous definition of the type `Bar` here 36LL | mod Bar {} 37 | ^^^^^^^ `Bar` redefined here 38 | 39 = note: `Bar` must be defined only once in the type namespace of this module 40 41error: aborting due to 4 previous errors 42 43For more information about this error, try `rustc --explain E0428`.