mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 15:01:51 +00:00
41e8d152dc
Co-authored-by: Adrian <adrian.iosdev@gmail.com>
17 lines
613 B
Plaintext
17 lines
613 B
Plaintext
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 1 previous error
|
|
|