]> git.lizzy.rs Git - rust.git/blob - src/test/ui/token/macro-incomplete-parse.stderr
Rollup merge of #53317 - estebank:abolish-ice, r=oli-obk
[rust.git] / src / test / ui / token / macro-incomplete-parse.stderr
1 error: macro expansion ignores token `,` and any following
2   --> $DIR/macro-incomplete-parse.rs:17:9
3    |
4 LL |         , //~ ERROR macro expansion ignores token `,`
5    |         ^
6    |
7 note: caused by the macro expansion here; the usage of `ignored_item!` is likely invalid in item context
8   --> $DIR/macro-incomplete-parse.rs:31:1
9    |
10 LL | ignored_item!();
11    | ^^^^^^^^^^^^^^^^
12
13 error: expected one of `.`, `;`, `?`, `}`, or an operator, found `,`
14   --> $DIR/macro-incomplete-parse.rs:22:14
15    |
16 LL |     () => ( 1,  //~ ERROR expected one of `.`, `;`, `?`, `}`, or an operator, found `,`
17    |              ^ expected one of `.`, `;`, `?`, `}`, or an operator here
18 ...
19 LL |     ignored_expr!();
20    |     ---------------- in this macro invocation
21
22 error: macro expansion ignores token `,` and any following
23   --> $DIR/macro-incomplete-parse.rs:28:14
24    |
25 LL |     () => ( 1, 2 ) //~ ERROR macro expansion ignores token `,`
26    |              ^
27    |
28 note: caused by the macro expansion here; the usage of `ignored_pat!` is likely invalid in pattern context
29   --> $DIR/macro-incomplete-parse.rs:36:9
30    |
31 LL |         ignored_pat!() => (),
32    |         ^^^^^^^^^^^^^^
33
34 error: aborting due to 3 previous errors
35