fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error: macro-expanded `extern crate` items cannot shadow names passed with `--extern` 2 --> $DIR/extern-prelude-extern-crate-restricted-shadowing.rs:19:9 3 | 4LL | extern crate std as core; 5 | ^^^^^^^^^^^^^^^^^^^^^^^^^ 6... 7LL | define_other_core!(); 8 | -------------------- in this macro invocation 9 | 10 = note: this error originates in the macro `define_other_core` (in Nightly builds, run with -Z macro-backtrace for more info) 11 12error[E0659]: `Vec` is ambiguous 13 --> $DIR/extern-prelude-extern-crate-restricted-shadowing.rs:13:9 14 | 15LL | Vec::panic!(); 16 | ^^^ ambiguous name 17 | 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 19note: `Vec` could refer to the crate imported here 20 --> $DIR/extern-prelude-extern-crate-restricted-shadowing.rs:5:9 21 | 22LL | extern crate std as Vec; 23 | ^^^^^^^^^^^^^^^^^^^^^^^^ 24... 25LL | define_vec!(); 26 | ------------- in this macro invocation 27note: `Vec` could also refer to a struct from prelude 28 --> $SRC_DIR/std/src/prelude/mod.rs:LL:COL 29 = note: this error originates in the macro `define_vec` (in Nightly builds, run with -Z macro-backtrace for more info) 30 31error: aborting due to 2 previous errors 32 33For more information about this error, try `rustc --explain E0659`.