rust-clippy/tests/ui/crashes/ice-6255.rs
2023-06-26 14:13:07 +00:00

15 lines
360 B
Rust

// originally from rustc ./tests/ui/macros/issue-78325-inconsistent-resolution.rs
// inconsistent resolution for a macro
macro_rules! define_other_core {
( ) => {
extern crate std as core;
};
}
fn main() {
core::panic!();
}
define_other_core!();
//~^ ERROR: macro-expanded `extern crate` items cannot shadow names passed with `--extern`