2018-11-20 22:28:07 +00:00
|
|
|
error: macro-expanded `extern crate` items cannot shadow names passed with `--extern`
|
|
|
|
--> $DIR/extern-prelude-extern-crate-restricted-shadowing.rs:19:9
|
|
|
|
|
|
|
|
|
LL | extern crate std as core;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
...
|
|
|
|
LL | define_other_core!();
|
|
|
|
| --------------------- in this macro invocation
|
|
|
|
|
2018-11-04 22:11:59 +00:00
|
|
|
error[E0659]: `Vec` is ambiguous (macro-expanded name vs less macro-expanded name from outer scope during import/macro resolution)
|
2018-11-20 22:28:07 +00:00
|
|
|
--> $DIR/extern-prelude-extern-crate-restricted-shadowing.rs:13:9
|
2018-09-28 22:31:54 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | Vec::panic!();
|
2018-09-28 22:31:54 +00:00
|
|
|
| ^^^ ambiguous name
|
|
|
|
|
|
2018-11-04 22:11:59 +00:00
|
|
|
= note: `Vec` could refer to a struct from prelude
|
2019-08-03 23:07:35 +00:00
|
|
|
note: `Vec` could also refer to the crate imported here
|
2018-11-20 22:28:07 +00:00
|
|
|
--> $DIR/extern-prelude-extern-crate-restricted-shadowing.rs:5:9
|
2018-09-28 22:31:54 +00:00
|
|
|
|
|
|
|
|
LL | extern crate std as Vec;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
...
|
|
|
|
LL | define_vec!();
|
|
|
|
| -------------- in this macro invocation
|
|
|
|
|
2018-11-20 22:28:07 +00:00
|
|
|
error: aborting due to 2 previous errors
|
2018-09-28 22:31:54 +00:00
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0659`.
|