]> git.lizzy.rs Git - rust.git/blob - src/test/ui/macros/issue-34421-mac-expr-bad-stmt-good-add-semi.stderr
Merge commit '43a1777b89cf6791f9e20878b4e5e3ae907867a5' into clippyup
[rust.git] / src / test / ui / macros / issue-34421-mac-expr-bad-stmt-good-add-semi.stderr
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
11    = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
12 help: add `;` to interpret the expansion as a statement
13    |
14 LL |     make_item!(A);
15    |                  ^
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
27    = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
28 help: add `;` to interpret the expansion as a statement
29    |
30 LL |     make_item!(B);
31    |                  ^
32
33 error: aborting due to 2 previous errors
34