]> git.lizzy.rs Git - rust.git/blob - src/test/ui/macros/macro-in-expression-context-2.stderr
Rollup merge of #68334 - andre-richter:master, r=japaric
[rust.git] / src / test / 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