1 error: expected one of `(`, `,`, `=`, `{`, or `}`, found `(String)`
2 --> $DIR/syntax-error-recovery.rs:7:26
4 LL | $token $($inner)? = $value,
5 | ^^^^^^ expected one of `(`, `,`, `=`, `{`, or `}`
7 LL | values!(STRING(1) as (String) => cfg(test),);
8 | -------------------------------------------- in this macro invocation
10 = help: enum variants can be `Variant`, `Variant = <integer>`, `Variant(Type, ..., TypeN)` or `Variant { fields: Types }`
11 = note: this error originates in the macro `values` (in Nightly builds, run with -Z macro-backtrace for more info)
13 error: macro expansion ignores token `(String)` and any following
14 --> $DIR/syntax-error-recovery.rs:7:26
16 LL | $token $($inner)? = $value,
19 LL | values!(STRING(1) as (String) => cfg(test),);
20 | -------------------------------------------- caused by the macro expansion here
22 = note: the usage of `values!` is likely invalid in item context
24 error: expected one of `!` or `::`, found `<eof>`
25 --> $DIR/syntax-error-recovery.rs:15:9
27 LL | values!(STRING(1) as (String) => cfg(test),);
28 | ^^^^^^ expected one of `!` or `::`
30 error: aborting due to 3 previous errors