mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 02:33:55 +00:00
16 lines
297 B
Rust
16 lines
297 B
Rust
|
//@ edition: 2021
|
||
|
|
||
|
// https://github.com/rust-lang/rust/pull/111761#issuecomment-1557777314
|
||
|
macro_rules! m {
|
||
|
() => {
|
||
|
extern crate core as std;
|
||
|
//~^ ERROR macro-expanded `extern crate` items cannot shadow names passed with `--extern`
|
||
|
}
|
||
|
}
|
||
|
|
||
|
m!();
|
||
|
|
||
|
use std::mem;
|
||
|
|
||
|
fn main() {}
|