2018-10-20 23:36:17 +03:00
|
|
|
error: expected identifier, found `String`
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/issue-37113.rs:4:16
|
2018-10-20 23:36:17 +03:00
|
|
|
|
|
2022-09-26 23:13:38 +09:00
|
|
|
LL | enum SomeEnum {
|
|
|
|
| -------- while parsing this enum
|
2019-03-09 15:03:44 +03:00
|
|
|
LL | $( $t, )*
|
2018-10-20 23:36:17 +03:00
|
|
|
| ^^ expected identifier
|
|
|
|
...
|
|
|
|
LL | test_macro!(String,);
|
2021-10-14 13:28:28 -05:00
|
|
|
| -------------------- in this macro invocation
|
2019-12-16 15:56:47 +02:00
|
|
|
|
|
2022-11-30 12:01:00 -08:00
|
|
|
= help: enum variants can be `Variant`, `Variant = <integer>`, `Variant(Type, ..., TypeN)` or `Variant { fields: Types }`
|
2021-02-13 14:52:25 -05:00
|
|
|
= note: this error originates in the macro `test_macro` (in Nightly builds, run with -Z macro-backtrace for more info)
|
2018-10-20 23:36:17 +03:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|