]> git.lizzy.rs Git - rust.git/blob - src/test/ui/rust-2018/uniform-paths/block-scoped-shadow.stderr
Rollup merge of #62351 - RalfJung:drop-in-place, r=cramertj
[rust.git] / src / test / ui / rust-2018 / uniform-paths / block-scoped-shadow.stderr
1 error[E0659]: `Foo` is ambiguous (name vs any other name during import resolution)
2   --> $DIR/block-scoped-shadow.rs:11:9
3    |
4 LL |     use Foo::*;
5    |         ^^^ ambiguous name
6    |
7 note: `Foo` could refer to the enum defined here
8   --> $DIR/block-scoped-shadow.rs:10:5
9    |
10 LL |     enum Foo { A, B }
11    |     ^^^^^^^^^^^^^^^^^
12 note: `Foo` could also refer to the enum defined here
13   --> $DIR/block-scoped-shadow.rs:5:1
14    |
15 LL | enum Foo {}
16    | ^^^^^^^^^^^
17    = help: use `crate::Foo` to refer to this enum unambiguously
18
19 error[E0659]: `std` is ambiguous (name vs any other name during import resolution)
20   --> $DIR/block-scoped-shadow.rs:18:9
21    |
22 LL |     use std as foo;
23    |         ^^^ ambiguous name
24    |
25 note: `std` could refer to the enum defined here
26   --> $DIR/block-scoped-shadow.rs:17:5
27    |
28 LL |     enum std {}
29    |     ^^^^^^^^^^^
30 note: `std` could also refer to the struct defined here
31   --> $DIR/block-scoped-shadow.rs:7:1
32    |
33 LL | struct std;
34    | ^^^^^^^^^^^
35    = help: use `crate::std` to refer to this struct unambiguously
36
37 error[E0659]: `std` is ambiguous (name vs any other name during import resolution)
38   --> $DIR/block-scoped-shadow.rs:18:9
39    |
40 LL |     use std as foo;
41    |         ^^^ ambiguous name
42    |
43 note: `std` could refer to the function defined here
44   --> $DIR/block-scoped-shadow.rs:16:5
45    |
46 LL |     fn std() {}
47    |     ^^^^^^^^^^^
48 note: `std` could also refer to the unit struct defined here
49   --> $DIR/block-scoped-shadow.rs:7:1
50    |
51 LL | struct std;
52    | ^^^^^^^^^^^
53    = help: use `crate::std` to refer to this unit struct unambiguously
54
55 error: aborting due to 3 previous errors
56
57 For more information about this error, try `rustc --explain E0659`.