fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
1.2 KiB31 linesraw
1error: expected one of `(`, `,`, `=`, `{`, or `}`, found `(String)`
2  --> $DIR/syntax-error-recovery.rs:7:26
3   |
4LL |                 $token $($inner)? = $value,
5   |                          ^^^^^^ expected one of `(`, `,`, `=`, `{`, or `}`
6...
7LL | 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
13error: macro expansion ignores token `(String)` and any following
14  --> $DIR/syntax-error-recovery.rs:7:26
15   |
16LL |                 $token $($inner)? = $value,
17   |                          ^^^^^^
18...
19LL | 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
24error: expected one of `!` or `::`, found `<eof>`
25  --> $DIR/syntax-error-recovery.rs:15:9
26   |
27LL | values!(STRING(1) as (String) => cfg(test),);
28   |         ^^^^^^ expected one of `!` or `::`
29
30error: aborting due to 3 previous errors
31