]> git.proxmox.com Git - rustc.git/blame - src/test/ui/macros/issue-34421-mac-expr-bad-stmt-good-add-semi.stderr
New upstream version 1.67.1+dfsg1
[rustc.git] / src / test / ui / macros / issue-34421-mac-expr-bad-stmt-good-add-semi.stderr
CommitLineData
ba9703b0
XL
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
17df50a5 11 = note: this error originates in the macro `make_item` (in Nightly builds, run with -Z macro-backtrace for more info)
ba9703b0
XL
12help: add `;` to interpret the expansion as a statement
13 |
14LL | make_item!(A);
94222f64 15 | +
ba9703b0
XL
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
17df50a5 27 = note: this error originates in the macro `make_item` (in Nightly builds, run with -Z macro-backtrace for more info)
ba9703b0
XL
28help: add `;` to interpret the expansion as a statement
29 |
30LL | make_item!(B);
94222f64 31 | +
ba9703b0
XL
32
33error: aborting due to 2 previous errors
34