]> git.lizzy.rs Git - rust.git/blob - src/test/ui/macros/macro-path-prelude-shadowing.stderr
Merge commit 'e228f0c16ea8c34794a6285bf57aab627c26b147' into libgccjit-codegen
[rust.git] / src / test / ui / macros / macro-path-prelude-shadowing.stderr
1 error[E0659]: `std` is ambiguous (glob import vs any other name from outer scope during import/macro resolution)
2   --> $DIR/macro-path-prelude-shadowing.rs:29:9
3    |
4 LL |         std::panic!();
5    |         ^^^ ambiguous name
6    |
7    = note: `std` could refer to a built-in crate
8 note: `std` could also refer to the module imported here
9   --> $DIR/macro-path-prelude-shadowing.rs:27:9
10    |
11 LL |     use m2::*; // glob-import user-defined `std`
12    |         ^^^^^
13    = help: consider adding an explicit import of `std` to disambiguate
14    = help: or use `self::std` to refer to this module unambiguously
15
16 error: aborting due to previous error
17
18 For more information about this error, try `rustc --explain E0659`.