mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-02 10:18:25 +00:00
16 lines
346 B
Rust
16 lines
346 B
Rust
//@ edition: 2018
|
|
|
|
macro_rules! define_other_core {
|
|
( ) => {
|
|
extern crate std as core;
|
|
//~^ ERROR macro-expanded `extern crate` items cannot shadow names passed with `--extern`
|
|
};
|
|
}
|
|
|
|
fn main() {
|
|
core::panic!(); //~ ERROR `core` is ambiguous
|
|
::core::panic!(); //~ ERROR `core` is ambiguous
|
|
}
|
|
|
|
define_other_core!();
|