2021-10-20 08:56:10 -05:00
|
|
|
error[E0659]: `env` is ambiguous
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/glob-shadowing.rs:11:17
|
2018-07-20 01:11:30 +03:00
|
|
|
|
|
2019-03-09 15:03:44 +03:00
|
|
|
LL | let x = env!("PATH");
|
2018-09-08 02:51:20 +03:00
|
|
|
| ^^^ ambiguous name
|
2018-07-20 01:11:30 +03:00
|
|
|
|
|
2021-10-20 08:56:10 -05:00
|
|
|
= note: ambiguous because of a conflict between a name from a glob import and an outer scope during import or macro resolution
|
2019-06-20 11:52:31 +03:00
|
|
|
= note: `env` could refer to a macro from prelude
|
2018-11-05 01:11:59 +03:00
|
|
|
note: `env` could also refer to the macro imported here
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/glob-shadowing.rs:9:9
|
2018-07-20 01:11:30 +03:00
|
|
|
|
|
|
|
|
LL | use m::*;
|
|
|
|
| ^^^^
|
2018-11-05 01:11:59 +03:00
|
|
|
= help: consider adding an explicit import of `env` to disambiguate
|
2018-11-11 19:46:04 +03:00
|
|
|
= help: or use `self::env` to refer to this macro unambiguously
|
2018-07-20 01:11:30 +03:00
|
|
|
|
2021-10-20 08:56:10 -05:00
|
|
|
error[E0659]: `env` is ambiguous
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/glob-shadowing.rs:19:21
|
2018-07-20 01:11:30 +03:00
|
|
|
|
|
2019-03-09 15:03:44 +03:00
|
|
|
LL | let x = env!("PATH");
|
2018-09-08 02:51:20 +03:00
|
|
|
| ^^^ ambiguous name
|
2018-07-20 01:11:30 +03:00
|
|
|
|
|
2021-10-20 08:56:10 -05:00
|
|
|
= note: ambiguous because of a conflict between a name from a glob import and an outer scope during import or macro resolution
|
2019-06-20 11:52:31 +03:00
|
|
|
= note: `env` could refer to a macro from prelude
|
2018-11-05 01:11:59 +03:00
|
|
|
note: `env` could also refer to the macro imported here
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/glob-shadowing.rs:17:13
|
2018-07-20 01:11:30 +03:00
|
|
|
|
|
|
|
|
LL | use m::*;
|
|
|
|
| ^^^^
|
2018-11-05 01:11:59 +03:00
|
|
|
= help: consider adding an explicit import of `env` to disambiguate
|
2018-07-20 01:11:30 +03:00
|
|
|
|
2021-10-20 08:56:10 -05:00
|
|
|
error[E0659]: `fenv` is ambiguous
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/glob-shadowing.rs:29:21
|
2018-07-20 01:11:30 +03:00
|
|
|
|
|
2019-03-09 15:03:44 +03:00
|
|
|
LL | let x = fenv!();
|
2018-09-08 02:51:20 +03:00
|
|
|
| ^^^^ ambiguous name
|
2018-07-20 01:11:30 +03:00
|
|
|
|
|
2021-10-20 08:56:10 -05:00
|
|
|
= note: ambiguous because of a conflict between a name from a glob import and an outer scope during import or macro resolution
|
2018-11-05 01:11:59 +03:00
|
|
|
note: `fenv` could refer to the macro imported here
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/glob-shadowing.rs:27:13
|
2018-07-20 01:11:30 +03:00
|
|
|
|
|
|
|
|
LL | use m::*;
|
|
|
|
| ^^^^
|
2018-11-05 01:11:59 +03:00
|
|
|
= help: consider adding an explicit import of `fenv` to disambiguate
|
|
|
|
note: `fenv` could also refer to the macro defined here
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/glob-shadowing.rs:25:5
|
2018-07-20 01:11:30 +03:00
|
|
|
|
|
|
|
|
LL | pub macro fenv($e: expr) { $e }
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2018-11-11 19:46:04 +03:00
|
|
|
= help: use `self::fenv` to refer to this macro unambiguously
|
2018-07-20 01:11:30 +03:00
|
|
|
|
|
|
|
error: aborting due to 3 previous errors
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0659`.
|