2018-11-23 15:37:27 -08:00
|
|
|
error: macro expansion ends with an incomplete expression: expected expression
|
2018-10-23 10:07:11 -07:00
|
|
|
--> $DIR/macro-in-expression-context-2.rs:5:16
|
|
|
|
|
|
2018-11-05 12:25:31 -08:00
|
|
|
LL | macro_rules! empty { () => () }
|
|
|
|
| -- in this macro arm
|
|
|
|
...
|
2018-10-23 10:07:11 -07:00
|
|
|
LL | _ => { empty!() }
|
2018-11-05 16:27:28 -08:00
|
|
|
| ^^^^^^^^ expected expression
|
2020-03-26 15:54:47 +01: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 19:07:19 -07:00
|
|
|
| +
|
2018-10-23 10:07:11 -07:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|