]> git.lizzy.rs Git - rust.git/blob - src/test/ui/or-patterns/or-patterns-syntactic-fail-2018.stderr
Rollup merge of #80269 - pickfire:patch-4, r=joshtriplett
[rust.git] / src / test / ui / or-patterns / or-patterns-syntactic-fail-2018.stderr
1 error: no rules expected the token `|`
2   --> $DIR/or-patterns-syntactic-fail-2018.rs:14:15
3    |
4 LL | macro_rules! accept_pat {
5    | ----------------------- when calling this macro
6 ...
7 LL | accept_pat!(p | q);
8    |               ^ no rules expected this token in macro call
9
10 error: no rules expected the token `|`
11   --> $DIR/or-patterns-syntactic-fail-2018.rs:15:13
12    |
13 LL | macro_rules! accept_pat {
14    | ----------------------- when calling this macro
15 ...
16 LL | accept_pat!(|p| q);
17    |             ^ no rules expected this token in macro call
18
19 error: aborting due to 2 previous errors
20