Skip to content

Commit 4c1d317

Browse files
Bless tests with new suggestion
1 parent f6b499d commit 4c1d317

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

src/test/ui/macros/macro-pat-pattern-followed-by-or-in-2021.stderr

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,29 @@ error: `$x:pat` is followed by `|`, which is not allowed for `pat` fragments
22
--> $DIR/macro-pat-pattern-followed-by-or-in-2021.rs:3:28
33
|
44
LL | macro_rules! foo { ($x:pat | $y:pat) => {} }
5-
| ^ not allowed after `pat` fragments
5+
| ------ ^ not allowed after `pat` fragments
6+
| |
7+
| help: try a `pat_param` fragment specifier instead: `$x:pat_param`
68
|
79
= note: allowed there are: `=>`, `,`, `=`, `if` or `in`
810

911
error: `$x:pat` is followed by `|`, which is not allowed for `pat` fragments
1012
--> $DIR/macro-pat-pattern-followed-by-or-in-2021.rs:4:32
1113
|
1214
LL | macro_rules! bar { ($($x:pat)+ | $($y:pat)+) => {} }
13-
| ^ not allowed after `pat` fragments
15+
| ------ ^ not allowed after `pat` fragments
16+
| |
17+
| help: try a `pat_param` fragment specifier instead: `$x:pat_param`
1418
|
1519
= note: allowed there are: `=>`, `,`, `=`, `if` or `in`
1620

1721
error: `$pat:pat` may be followed by `|`, which is not allowed for `pat` fragments
1822
--> $DIR/macro-pat-pattern-followed-by-or-in-2021.rs:7:36
1923
|
2024
LL | ( $expr:expr , $( $( $pat:pat )|+ => $expr_arm:expr ),+ ) => {
21-
| ^ not allowed after `pat` fragments
25+
| -------- ^ not allowed after `pat` fragments
26+
| |
27+
| help: try a `pat_param` fragment specifier instead: `$pat:pat_param`
2228
|
2329
= note: allowed there are: `=>`, `,`, `=`, `if` or `in`
2430

0 commit comments

Comments
 (0)