fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #66089 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4560ea788cb

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