summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/macro/issue-37113.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/parser/macro/issue-37113.stderr')
-rw-r--r--tests/ui/parser/macro/issue-37113.stderr16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/ui/parser/macro/issue-37113.stderr b/tests/ui/parser/macro/issue-37113.stderr
new file mode 100644
index 000000000..da9e743a0
--- /dev/null
+++ b/tests/ui/parser/macro/issue-37113.stderr
@@ -0,0 +1,16 @@
+error: expected identifier, found `String`
+ --> $DIR/issue-37113.rs:4:16
+ |
+LL | enum SomeEnum {
+ | -------- while parsing this enum
+LL | $( $t, )*
+ | ^^ expected identifier
+...
+LL | test_macro!(String,);
+ | -------------------- in this macro invocation
+ |
+ = help: enum variants can be `Variant`, `Variant = <integer>`, `Variant(Type, ..., TypeN)` or `Variant { fields: Types }`
+ = note: this error originates in the macro `test_macro` (in Nightly builds, run with -Z macro-backtrace for more info)
+
+error: aborting due to previous error
+