mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-11 16:15:03 +00:00
16 lines
370 B
Rust
16 lines
370 B
Rust
// originally from rustc ./src/test/ui/macros/issue-78325-inconsistent-resolution.rs
|
|
// inconsistent resolution for a macro
|
|
|
|
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!();
|
|
}
|
|
|
|
define_other_core!();
|