fork/rust

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

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
2.0 KiB54 linesraw
1error[E0659]: `env` is ambiguous
2  --> $DIR/glob-shadowing.rs:11:17
3   |
4LL |         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
9note: `env` could also refer to the macro imported here
10  --> $DIR/glob-shadowing.rs:9:9
11   |
12LL |     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
17error[E0659]: `env` is ambiguous
18  --> $DIR/glob-shadowing.rs:19:21
19   |
20LL |             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
25note: `env` could also refer to the macro imported here
26  --> $DIR/glob-shadowing.rs:17:13
27   |
28LL |         use m::*;
29   |             ^^^^
30   = help: consider adding an explicit import of `env` to disambiguate
31
32error[E0659]: `fenv` is ambiguous
33  --> $DIR/glob-shadowing.rs:29:21
34   |
35LL |             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
39note: `fenv` could refer to the macro imported here
40  --> $DIR/glob-shadowing.rs:27:13
41   |
42LL |         use m::*;
43   |             ^^^^
44   = help: consider adding an explicit import of `fenv` to disambiguate
45note: `fenv` could also refer to the macro defined here
46  --> $DIR/glob-shadowing.rs:25:5
47   |
48LL |     pub macro fenv($e: expr) { $e }
49   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
50   = help: use `self::fenv` to refer to this macro unambiguously
51
52error: aborting due to 3 previous errors
53
54For more information about this error, try `rustc --explain E0659`.