]> git.proxmox.com Git - rustc.git/blob - src/test/ui/imports/issue-25396.stderr
New upstream version 1.56.0~beta.4+dfsg1
[rustc.git] / src / test / ui / imports / issue-25396.stderr
1 error[E0252]: the name `baz` is defined multiple times
2 --> $DIR/issue-25396.rs:4:5
3 |
4 LL | use foo::baz;
5 | -------- previous import of the module `baz` here
6 LL | use bar::baz;
7 | ^^^^^^^^ `baz` reimported here
8 |
9 = note: `baz` must be defined only once in the type namespace of this module
10 help: you can use `as` to change the binding name of the import
11 |
12 LL | use bar::baz as other_baz;
13 | ~~~~~~~~~~~~~~~~~~~~~
14
15 error[E0252]: the name `Quux` is defined multiple times
16 --> $DIR/issue-25396.rs:7:5
17 |
18 LL | use foo::Quux;
19 | --------- previous import of the trait `Quux` here
20 LL | use bar::Quux;
21 | ^^^^^^^^^ `Quux` reimported here
22 |
23 = note: `Quux` must be defined only once in the type namespace of this module
24 help: you can use `as` to change the binding name of the import
25 |
26 LL | use bar::Quux as OtherQuux;
27 | ~~~~~~~~~~~~~~~~~~~~~~
28
29 error[E0252]: the name `blah` is defined multiple times
30 --> $DIR/issue-25396.rs:10:5
31 |
32 LL | use foo::blah;
33 | --------- previous import of the type `blah` here
34 LL | use bar::blah;
35 | ^^^^^^^^^ `blah` reimported here
36 |
37 = note: `blah` must be defined only once in the type namespace of this module
38 help: you can use `as` to change the binding name of the import
39 |
40 LL | use bar::blah as other_blah;
41 | ~~~~~~~~~~~~~~~~~~~~~~~
42
43 error[E0252]: the name `WOMP` is defined multiple times
44 --> $DIR/issue-25396.rs:13:5
45 |
46 LL | use foo::WOMP;
47 | --------- previous import of the value `WOMP` here
48 LL | use bar::WOMP;
49 | ^^^^^^^^^ `WOMP` reimported here
50 |
51 = note: `WOMP` must be defined only once in the value namespace of this module
52 help: you can use `as` to change the binding name of the import
53 |
54 LL | use bar::WOMP as OtherWOMP;
55 | ~~~~~~~~~~~~~~~~~~~~~~
56
57 error: aborting due to 4 previous errors
58
59 For more information about this error, try `rustc --explain E0252`.