mirror of
https://github.com/rust-lang/rust
synced 2024-11-05 20:45:15 +00:00
19 lines
194 B
Rust
19 lines
194 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() {}
|