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