rust/tests/ui/imports/extern-prelude-extern-crate-fail.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

21 lines
831 B
Plaintext
Raw Normal View History

error: macro-expanded `extern crate` items cannot shadow names passed with `--extern`
--> $DIR/extern-prelude-extern-crate-fail.rs:16:9
|
LL | extern crate std as non_existent;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...
LL | define_std_as_non_existent!();
2021-10-14 13:28:28 -05:00
| ----------------------------- in this macro invocation
|
= note: this error originates in the macro `define_std_as_non_existent` (in Nightly builds, run with -Z macro-backtrace for more info)
2020-08-27 07:27:14 -05:00
error[E0433]: failed to resolve: use of undeclared crate or module `two_macros`
--> $DIR/extern-prelude-extern-crate-fail.rs:10:9
|
2019-03-09 06:03:44 -06:00
LL | two_macros::m!();
2020-08-27 07:27:14 -05:00
| ^^^^^^^^^^ use of undeclared crate or module `two_macros`
error: aborting due to 2 previous errors
For more information about this error, try `rustc --explain E0433`.