rust/tests/ui/imports/glob-shadowing.stderr

55 lines
2.0 KiB
Plaintext
Raw Normal View History

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