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