summary refs log tree commit diff
path: root/tests/ui/macros/macro-invocation-with-curly-braces-34418.rs
blob: 46dbdd35ef658a4f3616d86d28cb3d17ddcee85e (plain)
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