]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-26886.stderr
Tweak unnecessary import suggestion
[rust.git] / src / test / ui / issues / issue-26886.stderr
1 error[E0252]: the name `Arc` is defined multiple times
2   --> $DIR/issue-26886.rs:2:5
3    |
4 LL | use std::sync::{self, Arc};
5    |                       --- previous import of the type `Arc` here
6 LL | 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    = help: remove unnecessary import
11
12 error[E0252]: the name `sync` is defined multiple times
13   --> $DIR/issue-26886.rs:4:5
14    |
15 LL | use std::sync::{self, Arc};
16    |                 ---- previous import of the module `sync` here
17 ...
18 LL | use std::sync;
19    |     ^^^^^^^^^ `sync` reimported here
20    |
21    = note: `sync` must be defined only once in the type namespace of this module
22    = help: remove unnecessary import
23
24 error: aborting due to 2 previous errors
25
26 For more information about this error, try `rustc --explain E0252`.