]> git.lizzy.rs Git - rust.git/blob - tests/ui/macros/macro-path-prelude-shadowing.stderr
Rollup merge of #106714 - Ezrashaw:remove-e0490, r=davidtwco
[rust.git] / tests / ui / macros / macro-path-prelude-shadowing.stderr
1 error[E0659]: `std` is ambiguous
2   --> $DIR/macro-path-prelude-shadowing.rs:29:9
3    |
4 LL |         std::panic!();
5    |         ^^^ ambiguous name
6    |
7    = note: ambiguous because of a conflict between a name from a glob import and an outer scope during import or macro resolution
8    = note: `std` could refer to a built-in crate
9 note: `std` could also refer to the module imported here
10   --> $DIR/macro-path-prelude-shadowing.rs:27:9
11    |
12 LL |     use m2::*; // glob-import user-defined `std`
13    |         ^^^^^
14    = help: consider adding an explicit import of `std` to disambiguate
15    = help: or use `self::std` to refer to this module unambiguously
16
17 error: aborting due to previous error
18
19 For more information about this error, try `rustc --explain E0659`.