summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-34418.rs
blob: 6132f744b50a9253ebc6370cfac197587f9a1ae5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// 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() {}