]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-26886.stderr
Auto merge of #54624 - arielb1:evaluate-outlives, r=nikomatsakis
[rust.git] / src / test / ui / issues / issue-26886.stderr
1 error[E0252]: the name `Arc` is defined multiple times
2   --> $DIR/issue-26886.rs:12:5
3    |
4 LL | use std::sync::{self, Arc};
5    |                       --- previous import of the type `Arc` here
6 LL | 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 LL | 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 LL | use std::sync::{self, Arc};
19    |                 ---- previous import of the module `sync` here
20 ...
21 LL | 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 LL | 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
32 For more information about this error, try `rustc --explain E0252`.