fork/rust
git clone https://git.julia.blue/fork/rust
8d69840ab92
1.43.1
1error[E0255]: the name `A` is defined multiple times 2 --> $DIR/issue-19498.rs:3:1 3 | 4LL | use self::A; 5 | ------- previous import of the module `A` here 6LL | use self::B; 7LL | mod A {} 8 | ^^^^^ `A` redefined here 9 | 10 = note: `A` must be defined only once in the type namespace of this module 11help: you can use `as` to change the binding name of the import 12 | 13LL | use self::A as OtherA; 14 | ^^^^^^^^^^^^^^^^^ 15 16error[E0255]: the name `B` is defined multiple times 17 --> $DIR/issue-19498.rs:5:1 18 | 19LL | use self::B; 20 | ------- previous import of the module `B` here 21... 22LL | pub mod B {} 23 | ^^^^^^^^^ `B` redefined here 24 | 25 = note: `B` must be defined only once in the type namespace of this module 26help: you can use `as` to change the binding name of the import 27 | 28LL | use self::B as OtherB; 29 | ^^^^^^^^^^^^^^^^^ 30 31error[E0255]: the name `D` is defined multiple times 32 --> $DIR/issue-19498.rs:9:5 33 | 34LL | use C::D; 35 | ---- previous import of the module `D` here 36LL | mod D {} 37 | ^^^^^ `D` redefined here 38 | 39 = note: `D` must be defined only once in the type namespace of this module 40help: you can use `as` to change the binding name of the import 41 | 42LL | use C::D as OtherD; 43 | ^^^^^^^^^^^^^^ 44 45error: aborting due to 3 previous errors 46 47For more information about this error, try `rustc --explain E0255`.