fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #66089 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4560ea788cb

1.39.0
687 B18 linesraw
1error: macro-expanded `extern crate` items cannot shadow names passed with `--extern`
2  --> $DIR/extern-prelude-extern-crate-fail.rs:16:9
3   |
4LL |         extern crate std as non_existent;
5   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6...
7LL | define_std_as_non_existent!();
8   | ------------------------------ in this macro invocation
9
10error[E0433]: failed to resolve: use of undeclared type or module `two_macros`
11  --> $DIR/extern-prelude-extern-crate-fail.rs:10:9
12   |
13LL |         two_macros::m!();
14   |         ^^^^^^^^^^ use of undeclared type or module `two_macros`
15
16error: aborting due to 2 previous errors
17
18For more information about this error, try `rustc --explain E0433`.