2018-11-04 16:11:59 -06:00
|
|
|
error[E0659]: `env` is ambiguous (glob import vs any other name from outer scope during import/macro resolution)
|
2018-07-19 17:11:30 -05:00
|
|
|
--> $DIR/glob-shadowing.rs:21:17
|
|
|
|
|
|
|
|
|
LL | let x = env!("PATH"); //~ ERROR `env` is ambiguous
|
2018-09-07 18:51:20 -05:00
|
|
|
| ^^^ ambiguous name
|
2018-07-19 17:11:30 -05:00
|
|
|
|
|
2018-11-04 16:11:59 -06:00
|
|
|
= note: `env` could refer to a built-in macro
|
|
|
|
note: `env` could also refer to the macro imported here
|
2018-07-19 17:11:30 -05:00
|
|
|
--> $DIR/glob-shadowing.rs:19:9
|
|
|
|
|
|
|
|
|
LL | use m::*;
|
|
|
|
| ^^^^
|
2018-11-04 16:11:59 -06:00
|
|
|
= help: consider adding an explicit import of `env` to disambiguate
|
2018-11-11 10:46:04 -06:00
|
|
|
= help: or use `self::env` to refer to this macro unambiguously
|
2018-07-19 17:11:30 -05:00
|
|
|
|
2018-11-04 16:11:59 -06:00
|
|
|
error[E0659]: `env` is ambiguous (glob import vs any other name from outer scope during import/macro resolution)
|
2018-07-19 17:11:30 -05:00
|
|
|
--> $DIR/glob-shadowing.rs:29:21
|
|
|
|
|
|
|
|
|
LL | let x = env!("PATH"); //~ ERROR `env` is ambiguous
|
2018-09-07 18:51:20 -05:00
|
|
|
| ^^^ ambiguous name
|
2018-07-19 17:11:30 -05:00
|
|
|
|
|
2018-11-04 16:11:59 -06:00
|
|
|
= note: `env` could refer to a built-in macro
|
|
|
|
note: `env` could also refer to the macro imported here
|
2018-07-19 17:11:30 -05:00
|
|
|
--> $DIR/glob-shadowing.rs:27:13
|
|
|
|
|
|
|
|
|
LL | use m::*;
|
|
|
|
| ^^^^
|
2018-11-04 16:11:59 -06:00
|
|
|
= help: consider adding an explicit import of `env` to disambiguate
|
2018-07-19 17:11:30 -05:00
|
|
|
|
2018-11-04 16:11:59 -06:00
|
|
|
error[E0659]: `fenv` is ambiguous (glob import vs any other name from outer scope during import/macro resolution)
|
2018-07-19 17:11:30 -05:00
|
|
|
--> $DIR/glob-shadowing.rs:39:21
|
|
|
|
|
|
|
|
|
LL | let x = fenv!(); //~ ERROR `fenv` is ambiguous
|
2018-09-07 18:51:20 -05:00
|
|
|
| ^^^^ ambiguous name
|
2018-07-19 17:11:30 -05:00
|
|
|
|
|
2018-11-04 16:11:59 -06:00
|
|
|
note: `fenv` could refer to the macro imported here
|
2018-07-19 17:11:30 -05:00
|
|
|
--> $DIR/glob-shadowing.rs:37:13
|
|
|
|
|
|
|
|
|
LL | use m::*;
|
|
|
|
| ^^^^
|
2018-11-04 16:11:59 -06:00
|
|
|
= help: consider adding an explicit import of `fenv` to disambiguate
|
|
|
|
note: `fenv` could also refer to the macro defined here
|
2018-07-19 17:11:30 -05:00
|
|
|
--> $DIR/glob-shadowing.rs:35:5
|
|
|
|
|
|
|
|
|
LL | pub macro fenv($e: expr) { $e }
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2018-11-11 10:46:04 -06:00
|
|
|
= help: use `self::fenv` to refer to this macro unambiguously
|
2018-07-19 17:11:30 -05:00
|
|
|
|
|
|
|
error: aborting due to 3 previous errors
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0659`.
|