1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
//@ 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