mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-05 13:13:40 +00:00
20 lines
193 B
Rust
20 lines
193 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() {}
|