]> git.proxmox.com Git - rustc.git/blob - tests/ui/macros/macro-in-expression-context-2.stderr
New upstream version 1.68.2+dfsg1
[rustc.git] / tests / ui / macros / macro-in-expression-context-2.stderr
1 error: macro expansion ends with an incomplete expression: expected expression
2 --> $DIR/macro-in-expression-context-2.rs:5:16
3 |
4 LL | macro_rules! empty { () => () }
5 | -- in this macro arm
6 ...
7 LL | _ => { empty!() }
8 | ^^^^^^^^ expected expression
9 |
10 = note: the macro call doesn't expand to an expression, but it can expand to a statement
11 help: add `;` to interpret the expansion as a statement
12 |
13 LL | _ => { empty!(); }
14 | +
15
16 error: aborting due to previous error
17