]> git.lizzy.rs Git - rust.git/blob - tests/ui/macros/issue-34421-mac-expr-bad-stmt-good-add-semi.rs
Rollup merge of #106323 - starkat99:stabilize-f16c_target_feature, r=petrochenkov
[rust.git] / tests / ui / macros / issue-34421-mac-expr-bad-stmt-good-add-semi.rs
1 macro_rules! make_item {
2     ($a:ident) => {
3         struct $a;
4     }; //~^ ERROR expected expression
5        //~| ERROR expected expression
6 }
7
8 fn a() {
9     make_item!(A)
10 }
11 fn b() {
12     make_item!(B)
13 }
14
15 fn main() {}