]> git.lizzy.rs Git - rust.git/blob - src/test/ui/macros/nonterminal-matching.stderr
Rollup merge of #89945 - JohnTitor:we-now-specialize-clone-from-slice, r=the8472
[rust.git] / src / test / 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: this error originates in the macro `complex_nonterminal` (in Nightly builds, run with -Z macro-backtrace for more info)
14
15 error: aborting due to previous error
16