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