2018-07-15 21:11:54 +00:00
|
|
|
error[E0252]: the name `baz` is defined multiple times
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/issue-25396.rs:4:5
|
2018-07-15 21:11:54 +00:00
|
|
|
|
|
|
|
|
LL | use foo::baz;
|
|
|
|
| -------- previous import of the module `baz` here
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | use bar::baz;
|
2018-07-15 21:11:54 +00:00
|
|
|
| ^^^^^^^^ `baz` reimported here
|
|
|
|
|
|
|
|
|
= note: `baz` must be defined only once in the type namespace of this module
|
2018-10-16 23:21:40 +00:00
|
|
|
help: you can use `as` to change the binding name of the import
|
2018-07-15 21:11:54 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | use bar::baz as other_baz;
|
2021-06-22 02:07:19 +00:00
|
|
|
| ~~~~~~~~~~~~~~~~~~~~~
|
2018-07-15 21:11:54 +00:00
|
|
|
|
|
|
|
error[E0252]: the name `Quux` is defined multiple times
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/issue-25396.rs:7:5
|
2018-07-15 21:11:54 +00:00
|
|
|
|
|
|
|
|
LL | use foo::Quux;
|
|
|
|
| --------- previous import of the trait `Quux` here
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | use bar::Quux;
|
2018-07-15 21:11:54 +00:00
|
|
|
| ^^^^^^^^^ `Quux` reimported here
|
|
|
|
|
|
|
|
|
= note: `Quux` must be defined only once in the type namespace of this module
|
2018-10-16 23:21:40 +00:00
|
|
|
help: you can use `as` to change the binding name of the import
|
2018-07-15 21:11:54 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | use bar::Quux as OtherQuux;
|
2021-06-22 02:07:19 +00:00
|
|
|
| ~~~~~~~~~~~~~~~~~~~~~~
|
2018-07-15 21:11:54 +00:00
|
|
|
|
|
|
|
error[E0252]: the name `blah` is defined multiple times
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/issue-25396.rs:10:5
|
2018-07-15 21:11:54 +00:00
|
|
|
|
|
|
|
|
LL | use foo::blah;
|
|
|
|
| --------- previous import of the type `blah` here
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | use bar::blah;
|
2018-07-15 21:11:54 +00:00
|
|
|
| ^^^^^^^^^ `blah` reimported here
|
|
|
|
|
|
|
|
|
= note: `blah` must be defined only once in the type namespace of this module
|
2018-10-16 23:21:40 +00:00
|
|
|
help: you can use `as` to change the binding name of the import
|
2018-07-15 21:11:54 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | use bar::blah as other_blah;
|
2021-06-22 02:07:19 +00:00
|
|
|
| ~~~~~~~~~~~~~~~~~~~~~~~
|
2018-07-15 21:11:54 +00:00
|
|
|
|
|
|
|
error[E0252]: the name `WOMP` is defined multiple times
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/issue-25396.rs:13:5
|
2018-07-15 21:11:54 +00:00
|
|
|
|
|
|
|
|
LL | use foo::WOMP;
|
|
|
|
| --------- previous import of the value `WOMP` here
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | use bar::WOMP;
|
2018-07-15 21:11:54 +00:00
|
|
|
| ^^^^^^^^^ `WOMP` reimported here
|
|
|
|
|
|
|
|
|
= note: `WOMP` must be defined only once in the value namespace of this module
|
2018-10-16 23:21:40 +00:00
|
|
|
help: you can use `as` to change the binding name of the import
|
2018-07-15 21:11:54 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | use bar::WOMP as OtherWOMP;
|
2021-06-22 02:07:19 +00:00
|
|
|
| ~~~~~~~~~~~~~~~~~~~~~~
|
2018-07-15 21:11:54 +00:00
|
|
|
|
|
|
|
error: aborting due to 4 previous errors
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0252`.
|