2025-08-01 18:07:59 +03:00
|
|
|
//@ edition: 2018
|
|
|
|
|
|
2020-10-24 21:17:34 +03:00
|
|
|
macro_rules! define_other_core {
|
|
|
|
|
( ) => {
|
|
|
|
|
extern crate std as core;
|
|
|
|
|
//~^ ERROR macro-expanded `extern crate` items cannot shadow names passed with `--extern`
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
fn main() {
|
2025-08-01 18:07:59 +03:00
|
|
|
core::panic!(); //~ ERROR `core` is ambiguous
|
|
|
|
|
::core::panic!(); //~ ERROR `core` is ambiguous
|
2020-10-24 21:17:34 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
define_other_core!();
|