mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 16:24:46 +00:00
21 lines
359 B
Rust
21 lines
359 B
Rust
//@edition: 2018
|
|
|
|
// https://github.com/rust-lang/rust/issues/98291
|
|
|
|
macro_rules! wrap {
|
|
() => {
|
|
macro_rules! _a {
|
|
() => {
|
|
""
|
|
};
|
|
}
|
|
};
|
|
}
|
|
|
|
wrap!();
|
|
|
|
fn main() {
|
|
format_args!(a!()); //~ ERROR: cannot find macro `a` in this scope
|
|
env!(a!()); //~ ERROR: cannot find macro `a` in this scope
|
|
}
|