]> git.lizzy.rs Git - rust.git/blob - src/test/ui/imports/extern-prelude-extern-crate-restricted-shadowing.stderr
6a28d74a343c95a4ce9fe319e13663cbdc480688
[rust.git] / src / test / ui / imports / extern-prelude-extern-crate-restricted-shadowing.stderr
1 error[E0659]: `Vec` is ambiguous
2   --> $DIR/extern-prelude-extern-crate-restricted-shadowing.rs:13:9
3    |
4 LL |         Vec::panic!(); //~ ERROR `Vec` is ambiguous
5    |         ^^^ ambiguous name
6    |
7 note: `Vec` could refer to the name defined here
8   --> $DIR/extern-prelude-extern-crate-restricted-shadowing.rs:5:9
9    |
10 LL |         extern crate std as Vec;
11    |         ^^^^^^^^^^^^^^^^^^^^^^^^
12 ...
13 LL | define_vec!();
14    | -------------- in this macro invocation
15 note: `Vec` could also refer to the name defined here
16    = note: macro-expanded items do not shadow when used in a macro invocation path
17
18 error: aborting due to previous error
19
20 For more information about this error, try `rustc --explain E0659`.