fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #71365 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4fb7144ed15

1.43.0
1.8 KiB51 linesraw
1error[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   |
4LL |         let x = env!("PATH");
5   |                 ^^^ ambiguous name
6   |
7   = note: `env` could refer to a macro from prelude
8note: `env` could also refer to the macro imported here
9  --> $DIR/glob-shadowing.rs:9:9
10   |
11LL |     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
16error[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   |
19LL |             let x = env!("PATH");
20   |                     ^^^ ambiguous name
21   |
22   = note: `env` could refer to a macro from prelude
23note: `env` could also refer to the macro imported here
24  --> $DIR/glob-shadowing.rs:17:13
25   |
26LL |         use m::*;
27   |             ^^^^
28   = help: consider adding an explicit import of `env` to disambiguate
29
30error[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   |
33LL |             let x = fenv!();
34   |                     ^^^^ ambiguous name
35   |
36note: `fenv` could refer to the macro imported here
37  --> $DIR/glob-shadowing.rs:27:13
38   |
39LL |         use m::*;
40   |             ^^^^
41   = help: consider adding an explicit import of `fenv` to disambiguate
42note: `fenv` could also refer to the macro defined here
43  --> $DIR/glob-shadowing.rs:25:5
44   |
45LL |     pub macro fenv($e: expr) { $e }
46   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
47   = help: use `self::fenv` to refer to this macro unambiguously
48
49error: aborting due to 3 previous errors
50
51For more information about this error, try `rustc --explain E0659`.