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