]> git.lizzy.rs Git - rust.git/blob - src/test/ui/macro-path-prelude-shadowing.stderr
Auto merge of #52712 - oli-obk:const_eval_cleanups, r=RalfJung
[rust.git] / src / test / ui / macro-path-prelude-shadowing.stderr
1 error[E0659]: `inline` is ambiguous
2   --> $DIR/macro-path-prelude-shadowing.rs:24:9
3    |
4 LL |         inline!(); //~ ERROR `inline` is ambiguous
5    |         ^^^^^^
6    |
7 note: `inline` could refer to the name imported here
8   --> $DIR/macro-path-prelude-shadowing.rs:16:5
9    |
10 LL |     #[macro_use]
11    |     ^^^^^^^^^^^^
12 ...
13 LL | add_macro_expanded_things_to_macro_prelude!();
14    | ---------------------------------------------- in this macro invocation
15 note: `inline` could also refer to the name defined here
16   --> $DIR/macro-path-prelude-shadowing.rs:24:9
17    |
18 LL |         inline!(); //~ ERROR `inline` is ambiguous
19    |         ^^^^^^
20    = note: macro-expanded macro imports do not shadow
21
22 error[E0659]: `std` is ambiguous
23   --> $DIR/macro-path-prelude-shadowing.rs:37:9
24    |
25 LL |         std::panic!(); //~ ERROR `std` is ambiguous
26    |         ^^^^^^^^^^
27    |
28 note: `std` could refer to the name imported here
29   --> $DIR/macro-path-prelude-shadowing.rs:35:9
30    |
31 LL |     use m2::*; // glob-import user-defined `std`
32    |         ^^^^^
33 note: `std` could also refer to the name defined here
34   --> $DIR/macro-path-prelude-shadowing.rs:37:9
35    |
36 LL |         std::panic!(); //~ ERROR `std` is ambiguous
37    |         ^^^
38    = note: consider adding an explicit import of `std` to disambiguate
39
40 error: aborting due to 2 previous errors
41
42 For more information about this error, try `rustc --explain E0659`.