]> git.lizzy.rs Git - rust.git/blob - src/test/ui/imports/glob-shadowing.stderr
Added docs to internal_macro const
[rust.git] / src / test / ui / imports / glob-shadowing.stderr
1 error[E0659]: `env` is ambiguous (glob import vs any other name from outer scope during import/macro resolution)
2   --> $DIR/glob-shadowing.rs:11:17
3    |
4 LL |         let x = env!("PATH");
5    |                 ^^^ ambiguous name
6    |
7    = note: `env` could refer to a macro from prelude
8 note: `env` could also refer to the macro imported here
9   --> $DIR/glob-shadowing.rs:9:9
10    |
11 LL |     use m::*;
12    |         ^^^^
13    = help: consider adding an explicit import of `env` to disambiguate
14    = help: or use `self::env` to refer to this macro unambiguously
15
16 error[E0659]: `env` is ambiguous (glob import vs any other name from outer scope during import/macro resolution)
17   --> $DIR/glob-shadowing.rs:19:21
18    |
19 LL |             let x = env!("PATH");
20    |                     ^^^ ambiguous name
21    |
22    = note: `env` could refer to a macro from prelude
23 note: `env` could also refer to the macro imported here
24   --> $DIR/glob-shadowing.rs:17:13
25    |
26 LL |         use m::*;
27    |             ^^^^
28    = help: consider adding an explicit import of `env` to disambiguate
29
30 error[E0659]: `fenv` is ambiguous (glob import vs any other name from outer scope during import/macro resolution)
31   --> $DIR/glob-shadowing.rs:29:21
32    |
33 LL |             let x = fenv!();
34    |                     ^^^^ ambiguous name
35    |
36 note: `fenv` could refer to the macro imported here
37   --> $DIR/glob-shadowing.rs:27:13
38    |
39 LL |         use m::*;
40    |             ^^^^
41    = help: consider adding an explicit import of `fenv` to disambiguate
42 note: `fenv` could also refer to the macro defined here
43   --> $DIR/glob-shadowing.rs:25:5
44    |
45 LL |     pub macro fenv($e: expr) { $e }
46    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
47    = help: use `self::fenv` to refer to this macro unambiguously
48
49 error: aborting due to 3 previous errors
50
51 For more information about this error, try `rustc --explain E0659`.