fork/rust

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

borsAuto merge of #71365 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4fb7144ed15

1.43.0
1.1 KiB35 linesraw
1error: macro expansion ignores token `,` and any following
2  --> $DIR/macro-incomplete-parse.rs:5:9
3   |
4LL |         ,
5   |         ^
6...
7LL | ignored_item!();
8   | ---------------- caused by the macro expansion here
9   |
10   = note: the usage of `ignored_item!` is likely invalid in item context
11
12error: expected one of `.`, `;`, `?`, `}`, or an operator, found `,`
13  --> $DIR/macro-incomplete-parse.rs:10:14
14   |
15LL |     () => ( 1,
16   |              ^ expected one of `.`, `;`, `?`, `}`, or an operator
17...
18LL |     ignored_expr!();
19   |     ---------------- in this macro invocation
20   |
21   = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
22
23error: macro expansion ignores token `,` and any following
24  --> $DIR/macro-incomplete-parse.rs:16:14
25   |
26LL |     () => ( 1, 2 )
27   |              ^
28...
29LL |         ignored_pat!() => (),
30   |         -------------- caused by the macro expansion here
31   |
32   = note: the usage of `ignored_pat!` is likely invalid in pattern context
33
34error: aborting due to 3 previous errors
35