2018-10-24 01:03:47 +03:00
|
|
|
error: macro-expanded `extern crate` items cannot shadow names passed with `--extern`
|
2021-04-03 13:05:11 +02:00
|
|
|
--> $DIR/extern-prelude-extern-crate-fail.rs:16:9
|
2018-10-24 01:03:47 +03:00
|
|
|
|
|
|
|
|
LL | extern crate std as non_existent;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
...
|
|
|
|
LL | define_std_as_non_existent!();
|
2021-10-14 13:28:28 -05:00
|
|
|
| ----------------------------- in this macro invocation
|
2019-12-16 15:56:47 +02:00
|
|
|
|
|
2021-02-13 14:52:25 -05:00
|
|
|
= note: this error originates in the macro `define_std_as_non_existent` (in Nightly builds, run with -Z macro-backtrace for more info)
|
2018-10-24 01:03:47 +03:00
|
|
|
|
2020-08-27 13:27:14 +01:00
|
|
|
error[E0433]: failed to resolve: use of undeclared crate or module `two_macros`
|
2021-04-03 13:05:11 +02:00
|
|
|
--> $DIR/extern-prelude-extern-crate-fail.rs:10:9
|
2018-09-29 01:31:54 +03:00
|
|
|
|
|
2019-03-09 15:03:44 +03:00
|
|
|
LL | two_macros::m!();
|
2020-08-27 13:27:14 +01:00
|
|
|
| ^^^^^^^^^^ use of undeclared crate or module `two_macros`
|
2018-09-29 01:31:54 +03:00
|
|
|
|
2018-10-24 01:03:47 +03:00
|
|
|
error: aborting due to 2 previous errors
|
2018-09-29 01:31:54 +03:00
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0433`.
|