2017-12-10 13:47:55 -06:00
|
|
|
error[E0252]: the name `Arc` is defined multiple times
|
2017-12-10 14:29:24 -06:00
|
|
|
--> $DIR/issue-26886.rs:12:5
|
2017-12-10 13:47:55 -06:00
|
|
|
|
|
2017-12-10 14:29:24 -06:00
|
|
|
11 | use std::sync::{self, Arc};
|
2017-12-10 13:47:55 -06:00
|
|
|
| --- previous import of the type `Arc` here
|
2017-12-10 14:29:24 -06:00
|
|
|
12 | use std::sync::Arc; //~ ERROR the name `Arc` is defined multiple times
|
2017-12-10 13:47:55 -06:00
|
|
|
| ^^^^^^^^^^^^^^ `Arc` reimported here
|
|
|
|
|
|
|
|
|
= note: `Arc` must be defined only once in the type namespace of this module
|
|
|
|
help: You can use `as` to change the binding name of the import
|
|
|
|
|
|
2017-12-10 14:29:24 -06:00
|
|
|
12 | use std::sync::Arc as OtherArc; //~ ERROR the name `Arc` is defined multiple times
|
2017-12-10 13:47:55 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error[E0252]: the name `sync` is defined multiple times
|
2017-12-10 14:29:24 -06:00
|
|
|
--> $DIR/issue-26886.rs:14:5
|
2017-12-10 13:47:55 -06:00
|
|
|
|
|
2017-12-10 14:29:24 -06:00
|
|
|
11 | use std::sync::{self, Arc};
|
2017-12-10 13:47:55 -06:00
|
|
|
| ---- previous import of the module `sync` here
|
|
|
|
...
|
2017-12-10 14:29:24 -06:00
|
|
|
14 | use std::sync; //~ ERROR the name `sync` is defined multiple times
|
2017-12-10 13:47:55 -06:00
|
|
|
| ^^^^^^^^^ `sync` reimported here
|
|
|
|
|
|
|
|
|
= note: `sync` must be defined only once in the type namespace of this module
|
|
|
|
help: You can use `as` to change the binding name of the import
|
|
|
|
|
|
2018-01-28 19:48:54 -06:00
|
|
|
14 | use std::sync as other_sync; //~ ERROR the name `sync` is defined multiple times
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^
|
2017-12-10 13:47:55 -06:00
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|