]>
Commit | Line | Data |
---|---|---|
ba9703b0 XL |
1 | error: expected expression, found keyword `struct` |
2 | --> $DIR/issue-34421-mac-expr-bad-stmt-good-add-semi.rs:3:9 | |
3 | | | |
4 | LL | struct $a; | |
5 | | ^^^^^^ expected expression | |
6 | ... | |
7 | LL | make_item!(A) | |
8 | | ------------- in this macro invocation | |
9 | | | |
10 | = note: the macro call doesn't expand to an expression, but it can expand to a statement | |
17df50a5 | 11 | = note: this error originates in the macro `make_item` (in Nightly builds, run with -Z macro-backtrace for more info) |
ba9703b0 XL |
12 | help: add `;` to interpret the expansion as a statement |
13 | | | |
14 | LL | make_item!(A); | |
94222f64 | 15 | | + |
ba9703b0 XL |
16 | |
17 | error: expected expression, found keyword `struct` | |
18 | --> $DIR/issue-34421-mac-expr-bad-stmt-good-add-semi.rs:3:9 | |
19 | | | |
20 | LL | struct $a; | |
21 | | ^^^^^^ expected expression | |
22 | ... | |
23 | LL | make_item!(B) | |
24 | | ------------- in this macro invocation | |
25 | | | |
26 | = note: the macro call doesn't expand to an expression, but it can expand to a statement | |
17df50a5 | 27 | = note: this error originates in the macro `make_item` (in Nightly builds, run with -Z macro-backtrace for more info) |
ba9703b0 XL |
28 | help: add `;` to interpret the expansion as a statement |
29 | | | |
30 | LL | make_item!(B); | |
94222f64 | 31 | | + |
ba9703b0 XL |
32 | |
33 | error: aborting due to 2 previous errors | |
34 |