rust/tests/ui/macros/macro-invocation-with-curly-braces-34418.rs
2025-07-24 17:01:44 -04:00

22 lines
245 B
Rust

//@ check-pass
macro_rules! make_item {
() => { fn f() {} }
}
macro_rules! make_stmt {
() => { let x = 0; }
}
fn f() {
make_item! {}
}
fn g() {
make_stmt! {}
}
fn main() {}
// https://github.com/rust-lang/rust/issues/34418