]> git.lizzy.rs Git - rust.git/blob - src/test/ui/macros/issue-34421-mac-expr-bad-stmt-good-add-semi.rs
Merge commit 'f51aade56f93175dde89177a92e3669ebd8e7592' into clippyup
[rust.git] / src / test / 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() {}