rust/src/test/ui/issues/issue-34418.rs
2018-12-25 21:08:33 -07:00

23 lines
230 B
Rust

// compile-pass
// skip-codegen
#![allow(unused)]
macro_rules! make_item {
() => { fn f() {} }
}
macro_rules! make_stmt {
() => { let x = 0; }
}
fn f() {
make_item! {}
}
fn g() {
make_stmt! {}
}
fn main() {}