]> git.lizzy.rs Git - rust.git/blob - src/test/ui/imports/extern-prelude-extern-crate-fail.stderr
Prohibit macro-expanded `extern crate` items shadowing crates passed with `--extern`
[rust.git] / src / test / 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 error[E0433]: failed to resolve. Use of undeclared type or module `two_macros`
11   --> $DIR/extern-prelude-extern-crate-fail.rs:10:9
12    |
13 LL |         two_macros::m!(); //~ ERROR failed to resolve. Use of undeclared type or module `two_macros`
14    |         ^^^^^^^^^^ Use of undeclared type or module `two_macros`
15
16 error: aborting due to 2 previous errors
17
18 For more information about this error, try `rustc --explain E0433`.