]> git.proxmox.com Git - rustc.git/blob - src/test/ui/imports/extern-prelude-extern-crate-restricted-shadowing.stderr
New upstream version 1.52.0~beta.3+dfsg1
[rustc.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 a macro (in Nightly builds, run with -Z macro-backtrace for more info)
11
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
14 |
15 LL | Vec::panic!();
16 | ^^^ ambiguous name
17 |
18 note: `Vec` could refer to the crate imported here
19 --> $DIR/extern-prelude-extern-crate-restricted-shadowing.rs:5:9
20 |
21 LL | extern crate std as Vec;
22 | ^^^^^^^^^^^^^^^^^^^^^^^^
23 ...
24 LL | define_vec!();
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
28 |
29 LL | pub use super::v1::*;
30 | ^^^^^^^^^^^^
31 = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
32
33 error: aborting due to 2 previous errors
34
35 For more information about this error, try `rustc --explain E0659`.