summaryrefslogtreecommitdiffstats
path: root/src/test/ui/macros/issue-34421-mac-expr-bad-stmt-good-add-semi.rs
blob: d78139365549a546b5093dff80615b87e1dea043 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
macro_rules! make_item {
    ($a:ident) => {
        struct $a;
    }; //~^ ERROR expected expression
       //~| ERROR expected expression
}

fn a() {
    make_item!(A)
}
fn b() {
    make_item!(B)
}

fn main() {}