fork/rust

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

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
974 B25 linesraw
1error[E0659]: `std` is ambiguous
2  --> $DIR/ambiguity-macros-nested.rs:8:13
3   |
4LL |     pub use std::io;
5   |             ^^^ ambiguous name
6   |
7   = note: ambiguous because of a conflict between a macro-expanded name and a less macro-expanded name from outer scope during import or macro resolution
8   = note: `std` could refer to a built-in crate
9   = help: use `::std` to refer to this crate unambiguously
10note: `std` could also refer to the module defined here
11  --> $DIR/ambiguity-macros-nested.rs:13:13
12   |
13LL | /             mod std {
14LL | |                 pub struct io;
15LL | |             }
16   | |_____________^
17...
18LL |       m!();
19   |       ---- in this macro invocation
20   = help: use `self::std` to refer to this module unambiguously
21   = note: this error originates in the macro `m` (in Nightly builds, run with -Z macro-backtrace for more info)
22
23error: aborting due to previous error
24
25For more information about this error, try `rustc --explain E0659`.