]> git.proxmox.com Git - rustc.git/blob - src/test/ui/issue-26886.stderr
e6424e535ee329e36577f216a937efc8c2c3fff8
[rustc.git] / src / test / ui / issue-26886.stderr
1 error[E0252]: the name `Arc` is defined multiple times
2 --> $DIR/issue-26886.rs:12:5
3 |
4 11 | use std::sync::{self, Arc};
5 | --- previous import of the type `Arc` here
6 12 | use std::sync::Arc; //~ ERROR the name `Arc` is defined multiple times
7 | ^^^^^^^^^^^^^^ `Arc` reimported here
8 |
9 = note: `Arc` must be defined only once in the type namespace of this module
10 help: You can use `as` to change the binding name of the import
11 |
12 12 | use std::sync::Arc as OtherArc; //~ ERROR the name `Arc` is defined multiple times
13 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
14
15 error[E0252]: the name `sync` is defined multiple times
16 --> $DIR/issue-26886.rs:14:5
17 |
18 11 | use std::sync::{self, Arc};
19 | ---- previous import of the module `sync` here
20 ...
21 14 | use std::sync; //~ ERROR the name `sync` is defined multiple times
22 | ^^^^^^^^^ `sync` reimported here
23 |
24 = note: `sync` must be defined only once in the type namespace of this module
25 help: You can use `as` to change the binding name of the import
26 |
27 14 | use std::sync as other_sync; //~ ERROR the name `sync` is defined multiple times
28 | ^^^^^^^^^^^^^^^^^^^^^^^
29
30 error: aborting due to 2 previous errors
31