fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
894 B32 linesraw
1error: no rules expected the token `|`
2  --> $DIR/or-patterns-syntactic-fail-2018.rs:12:15
3   |
4LL | macro_rules! accept_pat {
5   | ----------------------- when calling this macro
6...
7LL | accept_pat!(p | q);
8   |               ^ no rules expected this token in macro call
9   |
10note: while trying to match meta-variable `$p:pat`
11  --> $DIR/or-patterns-syntactic-fail-2018.rs:9:6
12   |
13LL |     ($p:pat) => {};
14   |      ^^^^^^
15
16error: no rules expected the token `|`
17  --> $DIR/or-patterns-syntactic-fail-2018.rs:13:13
18   |
19LL | macro_rules! accept_pat {
20   | ----------------------- when calling this macro
21...
22LL | accept_pat!(|p| q);
23   |             ^ no rules expected this token in macro call
24   |
25note: while trying to match meta-variable `$p:pat`
26  --> $DIR/or-patterns-syntactic-fail-2018.rs:9:6
27   |
28LL |     ($p:pat) => {};
29   |      ^^^^^^
30
31error: aborting due to 2 previous errors
32