fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #72883 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum49cae55760d

1.44.0
1.2 KiB34 linesraw
1error: expected expression, found keyword `struct`
2  --> $DIR/issue-34421-mac-expr-bad-stmt-good-add-semi.rs:3:9
3   |
4LL |         struct $a;
5   |         ^^^^^^ expected expression
6...
7LL |     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)
12help: add `;` to interpret the expansion as a statement
13   |
14LL |     make_item!(A);
15   |                  ^
16
17error: expected expression, found keyword `struct`
18  --> $DIR/issue-34421-mac-expr-bad-stmt-good-add-semi.rs:3:9
19   |
20LL |         struct $a;
21   |         ^^^^^^ expected expression
22...
23LL |     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)
28help: add `;` to interpret the expansion as a statement
29   |
30LL |     make_item!(B);
31   |                  ^
32
33error: aborting due to 2 previous errors
34