2018-10-23 17:03:47 -05:00
|
|
|
error: macro-expanded `extern crate` items cannot shadow names passed with `--extern`
|
2021-04-03 06:05:11 -05:00
|
|
|
--> $DIR/extern-prelude-extern-crate-fail.rs:16:9
|
2018-10-23 17:03:47 -05: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 07:56:47 -06:00
|
|
|
|
|
2021-02-13 13:52:25 -06: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-23 17:03:47 -05:00
|
|
|
|
2020-08-27 07:27:14 -05:00
|
|
|
error[E0433]: failed to resolve: use of undeclared crate or module `two_macros`
|
2021-04-03 06:05:11 -05:00
|
|
|
--> $DIR/extern-prelude-extern-crate-fail.rs:10:9
|
2018-09-28 17:31:54 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | two_macros::m!();
|
2020-08-27 07:27:14 -05:00
|
|
|
| ^^^^^^^^^^ use of undeclared crate or module `two_macros`
|
2018-09-28 17:31:54 -05:00
|
|
|
|
2018-10-23 17:03:47 -05:00
|
|
|
error: aborting due to 2 previous errors
|
2018-09-28 17:31:54 -05:00
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0433`.
|