33 lines
1.4 KiB
Plaintext
33 lines
1.4 KiB
Plaintext
|
error[E0252]: the name `Arc` is defined multiple times
|
||
|
--> $DIR/issue-26886.rs:13:5
|
||
|
|
|
||
|
11 | use std::sync::{self, Arc}; //~ NOTE previous import of the type `Arc` here
|
||
|
| --- previous import of the type `Arc` here
|
||
|
12 | //~^ NOTE previous import of the module `sync` here
|
||
|
13 | use std::sync::Arc; //~ ERROR the name `Arc` is defined multiple times
|
||
|
| ^^^^^^^^^^^^^^ `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
|
||
|
|
|
||
|
13 | use std::sync::Arc as OtherArc; //~ ERROR the name `Arc` is defined multiple times
|
||
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
|
|
||
|
error[E0252]: the name `sync` is defined multiple times
|
||
|
--> $DIR/issue-26886.rs:16:5
|
||
|
|
|
||
|
11 | use std::sync::{self, Arc}; //~ NOTE previous import of the type `Arc` here
|
||
|
| ---- previous import of the module `sync` here
|
||
|
...
|
||
|
16 | use std::sync; //~ ERROR the name `sync` is defined multiple times
|
||
|
| ^^^^^^^^^ `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
|
||
|
|
|
||
|
16 | use std::sync as Othersync; //~ ERROR the name `sync` is defined multiple times
|
||
|
| ^^^^^^^^^^^^^^^^^^^^^^
|
||
|
|
||
|
error: aborting due to 2 previous errors
|
||
|
|