2018-11-23 17:37:27 -06:00
|
|
|
error: macro expansion ends with an incomplete expression: expected expression
|
2018-10-23 12:07:11 -05:00
|
|
|
--> $DIR/macro-in-expression-context-2.rs:5:16
|
|
|
|
|
|
2018-11-05 14:25:31 -06:00
|
|
|
LL | macro_rules! empty { () => () }
|
|
|
|
| -- in this macro arm
|
|
|
|
...
|
2018-10-23 12:07:11 -05:00
|
|
|
LL | _ => { empty!() }
|
2018-11-05 18:27:28 -06:00
|
|
|
| ^^^^^^^^ expected expression
|
2020-03-26 09:54:47 -05:00
|
|
|
|
|
|
|
|
= note: the macro call doesn't expand to an expression, but it can expand to a statement
|
|
|
|
help: add `;` to interpret the expansion as a statement
|
|
|
|
|
|
|
|
|
LL | _ => { empty!(); }
|
2021-06-21 21:07:19 -05:00
|
|
|
| +
|
2018-10-23 12:07:11 -05:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|