]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/macros/macro-in-expression-context-2.stderr
Auto merge of #83152 - guswynn:jemallocator_part2, r=Mark-Simulacrum
[rust.git] / src / test / ui / macros / macro-in-expression-context-2.stderr
index 672871c49ca5a5ea4cc0dc1d40a059997bb0c28c..8f9660963937f9cb2a795cf8d6bdcf7f00514493 100644 (file)
@@ -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