about summary refs log tree commit diff
path: root/src/test/ui/macros/macro-in-expression-context.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/macros/macro-in-expression-context.stderr')
-rw-r--r--src/test/ui/macros/macro-in-expression-context.stderr15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/test/ui/macros/macro-in-expression-context.stderr b/src/test/ui/macros/macro-in-expression-context.stderr
new file mode 100644
index 00000000000..d27d6fbaef7
--- /dev/null
+++ b/src/test/ui/macros/macro-in-expression-context.stderr
@@ -0,0 +1,15 @@
+error: macro expansion ignores token `assert_eq` and any following
+  --> $DIR/macro-in-expression-context.rs:6:9
+   |
+LL |         assert_eq!("B", "B");
+   |         ^^^^^^^^^
+...
+LL |     foo!()
+   |     ------- help: you might be missing a semicolon here: `;`
+   |     |
+   |     caused by the macro expansion here
+   |
+   = note: the usage of `foo!` is likely invalid in expression context
+
+error: aborting due to previous error
+