about summary refs log tree commit diff
path: root/src/test/ui/macros/macro-in-expression-context-2.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/macros/macro-in-expression-context-2.stderr')
-rw-r--r--src/test/ui/macros/macro-in-expression-context-2.stderr6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/test/ui/macros/macro-in-expression-context-2.stderr b/src/test/ui/macros/macro-in-expression-context-2.stderr
index 672871c49ca..8f966096393 100644
--- a/src/test/ui/macros/macro-in-expression-context-2.stderr
+++ b/src/test/ui/macros/macro-in-expression-context-2.stderr
@@ -6,6 +6,12 @@ LL | macro_rules! empty { () => () }
 ...
 LL |         _ => { empty!() }
    |                ^^^^^^^^ expected expression
+   |
+   = 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!(); }
+   |                        ^
 
 error: aborting due to previous error