]> git.lizzy.rs Git - rust.git/blob - tests/ui/imports/extern-prelude-extern-crate-fail.stderr
Rollup merge of #107190 - fmease:fix-81698, r=compiler-errors
[rust.git] / tests / ui / imports / extern-prelude-extern-crate-fail.stderr
1 error: macro-expanded `extern crate` items cannot shadow names passed with `--extern`
2   --> $DIR/extern-prelude-extern-crate-fail.rs:16:9
3    |
4 LL |         extern crate std as non_existent;
5    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6 ...
7 LL | define_std_as_non_existent!();
8    | ----------------------------- in this macro invocation
9    |
10    = note: this error originates in the macro `define_std_as_non_existent` (in Nightly builds, run with -Z macro-backtrace for more info)
11
12 error[E0433]: failed to resolve: use of undeclared crate or module `two_macros`
13   --> $DIR/extern-prelude-extern-crate-fail.rs:10:9
14    |
15 LL |         two_macros::m!();
16    |         ^^^^^^^^^^ use of undeclared crate or module `two_macros`
17
18 error: aborting due to 2 previous errors
19
20 For more information about this error, try `rustc --explain E0433`.