2017-12-10 19:47:55 +00:00
|
|
|
error[E0252]: the name `Arc` is defined multiple times
|
2017-12-10 20:29:24 +00:00
|
|
|
--> $DIR/issue-26886.rs:12:5
|
2017-12-10 19:47:55 +00:00
|
|
|
|
|
2018-02-23 00:42:32 +00:00
|
|
|
LL | use std::sync::{self, Arc};
|
2017-12-10 19:47:55 +00:00
|
|
|
| --- previous import of the type `Arc` here
|
2018-02-23 00:42:32 +00:00
|
|
|
LL | use std::sync::Arc; //~ ERROR the name `Arc` is defined multiple times
|
2017-12-10 19:47:55 +00:00
|
|
|
| ^^^^^^^^^^^^^^ `Arc` reimported here
|
|
|
|
|
|
|
|
|
= note: `Arc` 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
|
2017-12-10 19:47:55 +00:00
|
|
|
|
|
2018-02-24 23:01:39 +00:00
|
|
|
LL | use std::sync::Arc as OtherArc; //~ ERROR the name `Arc` is defined multiple times
|
2017-12-10 19:47:55 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error[E0252]: the name `sync` is defined multiple times
|
2017-12-10 20:29:24 +00:00
|
|
|
--> $DIR/issue-26886.rs:14:5
|
2017-12-10 19:47:55 +00:00
|
|
|
|
|
2018-02-23 00:42:32 +00:00
|
|
|
LL | use std::sync::{self, Arc};
|
2017-12-10 19:47:55 +00:00
|
|
|
| ---- previous import of the module `sync` here
|
|
|
|
...
|
2018-02-23 00:42:32 +00:00
|
|
|
LL | use std::sync; //~ ERROR the name `sync` is defined multiple times
|
2017-12-10 19:47:55 +00:00
|
|
|
| ^^^^^^^^^ `sync` reimported here
|
|
|
|
|
|
|
|
|
= note: `sync` 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
|
2017-12-10 19:47:55 +00:00
|
|
|
|
|
2018-02-24 23:01:39 +00:00
|
|
|
LL | use std::sync as other_sync; //~ ERROR the name `sync` is defined multiple times
|
2018-01-29 01:48:54 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^
|
2017-12-10 19:47:55 +00:00
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|
2018-03-03 14:59:40 +00:00
|
|
|
For more information about this error, try `rustc --explain E0252`.
|