]> git.proxmox.com Git - rustc.git/blame - src/test/ui/issues/issue-19498.stderr
New upstream version 1.31.0~beta.4+dfsg1
[rustc.git] / src / test / ui / issues / issue-19498.stderr
CommitLineData
ff7c6d11
XL
1error[E0255]: the name `A` is defined multiple times
2 --> $DIR/issue-19498.rs:13:1
3 |
0531ce1d 4LL | use self::A;
ff7c6d11 5 | ------- previous import of the module `A` here
0531ce1d
XL
6LL | use self::B;
7LL | 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 11help: you can use `as` to change the binding name of the import
ff7c6d11 12 |
0531ce1d 13LL | use self::A as OtherA;
ff7c6d11
XL
14 | ^^^^^^^^^^^^^^^^^
15
16error[E0255]: the name `B` is defined multiple times
17 --> $DIR/issue-19498.rs:15:1
18 |
0531ce1d 19LL | use self::B;
ff7c6d11
XL
20 | ------- previous import of the module `B` here
21...
0531ce1d 22LL | 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 26help: you can use `as` to change the binding name of the import
ff7c6d11 27 |
0531ce1d 28LL | use self::B as OtherB;
ff7c6d11
XL
29 | ^^^^^^^^^^^^^^^^^
30
31error[E0255]: the name `D` is defined multiple times
32 --> $DIR/issue-19498.rs:19:5
33 |
0531ce1d 34LL | use C::D;
ff7c6d11 35 | ---- previous import of the module `D` here
0531ce1d 36LL | 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 40help: you can use `as` to change the binding name of the import
ff7c6d11 41 |
0531ce1d 42LL | use C::D as OtherD;
ff7c6d11
XL
43 | ^^^^^^^^^^^^^^
44
45error: aborting due to 3 previous errors
46
0531ce1d 47For more information about this error, try `rustc --explain E0255`.