fork/rust

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

borsAuto merge of #69854 - pietroalbini:stable-next, r=Centrilb8cedc00407

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