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