mirror of
https://github.com/rust-lang/rust.git
synced 2025-09-28 21:55:31 +00:00
22 lines
245 B
Rust
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
|