1 error: macro-expanded `extern crate` items cannot shadow names passed with `--extern`
2 --> $DIR/extern-prelude-extern-crate-restricted-shadowing.rs:19:9
4 LL | extern crate std as core;
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^
7 LL | define_other_core!();
8 | --------------------- in this macro invocation
10 = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
12 error[E0659]: `Vec` is ambiguous (macro-expanded name vs less macro-expanded name from outer scope during import/macro resolution)
13 --> $DIR/extern-prelude-extern-crate-restricted-shadowing.rs:13:9
18 note: `Vec` could refer to the crate imported here
19 --> $DIR/extern-prelude-extern-crate-restricted-shadowing.rs:5:9
21 LL | extern crate std as Vec;
22 | ^^^^^^^^^^^^^^^^^^^^^^^^
25 | -------------- in this macro invocation
26 note: `Vec` could also refer to the struct defined here
27 --> $SRC_DIR/std/src/prelude/mod.rs:LL:COL
29 LL | pub use super::v1::*;
31 = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
33 error: aborting due to 2 previous errors
35 For more information about this error, try `rustc --explain E0659`.