]>
Commit | Line | Data |
---|---|---|
13cf67c4 | 1 | error[E0659]: `std` is ambiguous (name vs any other name during import resolution) |
0731742a | 2 | --> $DIR/ambiguity-macros.rs:7:5 |
13cf67c4 XL |
3 | | |
4 | LL | use std::io; | |
5 | | ^^^ ambiguous name | |
6 | | | |
416331ca XL |
7 | = note: `std` could refer to a built-in crate |
8 | = help: use `::std` to refer to this crate unambiguously | |
13cf67c4 | 9 | note: `std` could also refer to the module defined here |
0731742a | 10 | --> $DIR/ambiguity-macros.rs:12:9 |
b7449926 | 11 | | |
b7449926 XL |
12 | LL | / mod std { |
13 | LL | | pub struct io; | |
14 | LL | | } | |
13cf67c4 XL |
15 | | |_________^ |
16 | ... | |
17 | LL | m!(); | |
18 | | ----- in this macro invocation | |
19 | = help: use `crate::std` to refer to this module unambiguously | |
b7449926 XL |
20 | |
21 | error: aborting due to previous error | |
22 | ||
13cf67c4 | 23 | For more information about this error, try `rustc --explain E0659`. |