]> git.lizzy.rs Git - rust.git/blob - tests/ui/macros/syntax-error-recovery.stderr
Rollup merge of #103236 - tspiteri:redoc-int-adc-sbb, r=m-ou-se
[rust.git] / tests / ui / macros / syntax-error-recovery.stderr
1 error: expected one of `(`, `,`, `=`, `{`, or `}`, found `(String)`
2   --> $DIR/syntax-error-recovery.rs:7:26
3    |
4 LL |                 $token $($inner)? = $value,
5    |                          ^^^^^^ expected one of `(`, `,`, `=`, `{`, or `}`
6 ...
7 LL | values!(STRING(1) as (String) => cfg(test),);
8    | -------------------------------------------- in this macro invocation
9    |
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)
12
13 error: macro expansion ignores token `(String)` and any following
14   --> $DIR/syntax-error-recovery.rs:7:26
15    |
16 LL |                 $token $($inner)? = $value,
17    |                          ^^^^^^
18 ...
19 LL | values!(STRING(1) as (String) => cfg(test),);
20    | -------------------------------------------- caused by the macro expansion here
21    |
22    = note: the usage of `values!` is likely invalid in item context
23
24 error: expected one of `!` or `::`, found `<eof>`
25   --> $DIR/syntax-error-recovery.rs:15:9
26    |
27 LL | values!(STRING(1) as (String) => cfg(test),);
28    |         ^^^^^^ expected one of `!` or `::`
29
30 error: aborting due to 3 previous errors
31