fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #72883 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum49cae55760d

1.44.0
805 B24 linesraw
1error[E0252]: the name `Arc` is defined multiple times
2  --> $DIR/issue-26886.rs:2:5
3   |
4LL | use std::sync::{self, Arc};
5   |                       --- previous import of the type `Arc` here
6LL | use std::sync::Arc;
7   |     ^^^^^^^^^^^^^^ `Arc` reimported here
8   |
9   = note: `Arc` must be defined only once in the type namespace of this module
10
11error[E0252]: the name `sync` is defined multiple times
12  --> $DIR/issue-26886.rs:4:5
13   |
14LL | use std::sync::{self, Arc};
15   |                 ---- previous import of the module `sync` here
16...
17LL | use std::sync;
18   |     ^^^^^^^^^ `sync` reimported here
19   |
20   = note: `sync` must be defined only once in the type namespace of this module
21
22error: aborting due to 2 previous errors
23
24For more information about this error, try `rustc --explain E0252`.