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