]> git.lizzy.rs Git - rust.git/blob - tests/ui/macros/nonterminal-matching.stderr
Rollup merge of #106717 - klensy:typo, r=lcnr
[rust.git] / tests / ui / macros / nonterminal-matching.stderr
1 error: no rules expected the token `enum E {}`
2   --> $DIR/nonterminal-matching.rs:19:10
3    |
4 LL |     macro n(a $nt_item b) {
5    |     --------------------- when calling this macro
6 ...
7 LL |     n!(a $nt_item b);
8    |          ^^^^^^^^ no rules expected this token in macro call
9 ...
10 LL | complex_nonterminal!(enum E {});
11    | ------------------------------- in this macro invocation
12    |
13 note: while trying to match `enum E {}`
14   --> $DIR/nonterminal-matching.rs:15:15
15    |
16 LL |     macro n(a $nt_item b) {
17    |               ^^^^^^^^
18 ...
19 LL | complex_nonterminal!(enum E {});
20    | ------------------------------- in this macro invocation
21    = note: this error originates in the macro `complex_nonterminal` (in Nightly builds, run with -Z macro-backtrace for more info)
22
23 error: aborting due to previous error
24