mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-24 21:53:23 +00:00
15 lines
367 B
Rust
15 lines
367 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;
|
|
//~^ ERROR macro-expanded `extern crate` items cannot shadow names passed with `--extern`
|
|
};
|
|
}
|
|
|
|
fn main() {
|
|
core::panic!();
|
|
}
|
|
|
|
define_other_core!();
|