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 the macro `define_other_core` (in Nightly builds, run with -Z macro-backtrace for more info)
12 error[E0659]: `Vec` is ambiguous
13 --> $DIR/extern-prelude-extern-crate-restricted-shadowing.rs:13:9
18 = note: ambiguous because of a conflict between a macro-expanded name and a less macro-expanded name from outer scope during import or macro resolution
19 note: `Vec` could refer to the crate imported here
20 --> $DIR/extern-prelude-extern-crate-restricted-shadowing.rs:5:9
22 LL | extern crate std as Vec;
23 | ^^^^^^^^^^^^^^^^^^^^^^^^
26 | ------------- in this macro invocation
27 note: `Vec` could also refer to the struct defined here
28 --> $SRC_DIR/std/src/prelude/mod.rs:LL:COL
30 LL | pub use super::v1::*;
32 = note: this error originates in the macro `define_vec` (in Nightly builds, run with -Z macro-backtrace for more info)
34 error: aborting due to 2 previous errors
36 For more information about this error, try `rustc --explain E0659`.