]> git.lizzy.rs Git - rust.git/blob - src/test/ui/imports/extern-prelude-extern-crate-restricted-shadowing.stderr
Sync portable-simd to rust-lang/portable-simd@72df4c45056a8bc0d1b3f06fdc828722177f0763
[rust.git] / src / test / ui / imports / extern-prelude-extern-crate-restricted-shadowing.stderr
1 error: macro-expanded `extern crate` items cannot shadow names passed with `--extern`
2   --> $DIR/extern-prelude-extern-crate-restricted-shadowing.rs:19:9
3    |
4 LL |         extern crate std as core;
5    |         ^^^^^^^^^^^^^^^^^^^^^^^^^
6 ...
7 LL | 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
12 error[E0659]: `Vec` is ambiguous
13   --> $DIR/extern-prelude-extern-crate-restricted-shadowing.rs:13:9
14    |
15 LL |         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
19 note: `Vec` could refer to the crate imported here
20   --> $DIR/extern-prelude-extern-crate-restricted-shadowing.rs:5:9
21    |
22 LL |         extern crate std as Vec;
23    |         ^^^^^^^^^^^^^^^^^^^^^^^^
24 ...
25 LL | define_vec!();
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
29    |
30 LL |     pub use super::v1::*;
31    |             ^^^^^^^^^^^^
32    = note: this error originates in the macro `define_vec` (in Nightly builds, run with -Z macro-backtrace for more info)
33
34 error: aborting due to 2 previous errors
35
36 For more information about this error, try `rustc --explain E0659`.