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