1
1
error: expected one of `,`, `=>`, `if`, `|`, or `}`, found reserved identifier `_`
2
- --> $DIR/match-arm-without-body.rs:11 :9
2
+ --> $DIR/match-arm-without-body.rs:13 :9
3
3
|
4
4
LL | Some(_)
5
5
| - expected one of `,`, `=>`, `if`, `|`, or `}`
6
6
LL | _ => {}
7
7
| ^ unexpected token
8
8
9
9
error: unexpected `,` in pattern
10
- --> $DIR/match-arm-without-body.rs:15 :16
10
+ --> $DIR/match-arm-without-body.rs:17 :16
11
11
|
12
12
LL | Some(_),
13
13
| ^
@@ -22,7 +22,7 @@ LL | Some(_) |
22
22
|
23
23
24
24
error: unexpected `,` in pattern
25
- --> $DIR/match-arm-without-body.rs:21 :16
25
+ --> $DIR/match-arm-without-body.rs:23 :16
26
26
|
27
27
LL | Some(_),
28
28
| ^
@@ -45,18 +45,72 @@ LL ~ _ => {}
45
45
|
46
46
47
47
error: expected one of `,`, `.`, `=>`, `?`, `}`, or an operator, found reserved identifier `_`
48
- --> $DIR/match-arm-without-body.rs:32 :9
48
+ --> $DIR/match-arm-without-body.rs:36 :9
49
49
|
50
50
LL | Some(_) if true
51
51
| - expected one of `,`, `.`, `=>`, `?`, `}`, or an operator
52
52
LL | _ => {}
53
53
| ^ unexpected token
54
54
55
55
error: expected `,` following `match` arm
56
- --> $DIR/match-arm-without-body.rs:52 :15
56
+ --> $DIR/match-arm-without-body.rs:66 :15
57
57
|
58
58
LL | pat!()
59
59
| ^ help: missing a comma here to end this `match` arm: `,`
60
60
61
- error: aborting due to 5 previous errors
61
+ error: `match` arm with no body
62
+ --> $DIR/match-arm-without-body.rs:7:9
63
+ |
64
+ LL | Some(_)
65
+ | ^^^^^^^- help: add a body after the pattern: `=> todo!(),`
66
+
67
+ error: `match` arm with no body
68
+ --> $DIR/match-arm-without-body.rs:30:9
69
+ |
70
+ LL | Some(_) if true
71
+ | ^^^^^^^^^^^^^^^- help: add a body after the pattern: `=> todo!(),`
72
+
73
+ error: `match` arm with no body
74
+ --> $DIR/match-arm-without-body.rs:40:9
75
+ |
76
+ LL | Some(_) if true,
77
+ | ^^^^^^^^^^^^^^^- help: add a body after the pattern: `=> todo!(),`
78
+
79
+ error: `match` arm with no body
80
+ --> $DIR/match-arm-without-body.rs:45:9
81
+ |
82
+ LL | Some(_) if true,
83
+ | ^^^^^^^^^^^^^^^- help: add a body after the pattern: `=> todo!(),`
84
+
85
+ error: `match` arm with no body
86
+ --> $DIR/match-arm-without-body.rs:51:9
87
+ |
88
+ LL | pat!()
89
+ | ^^^^^^- help: add a body after the pattern: `=> todo!(),`
90
+
91
+ error: `match` arm with no body
92
+ --> $DIR/match-arm-without-body.rs:56:9
93
+ |
94
+ LL | pat!(),
95
+ | ^^^^^^- help: add a body after the pattern: `=> todo!(),`
96
+
97
+ error: `match` arm with no body
98
+ --> $DIR/match-arm-without-body.rs:61:9
99
+ |
100
+ LL | pat!() if true,
101
+ | ^^^^^^^^^^^^^^- help: add a body after the pattern: `=> todo!(),`
102
+
103
+ error: `match` arm with no body
104
+ --> $DIR/match-arm-without-body.rs:66:9
105
+ |
106
+ LL | pat!()
107
+ | ^^^^^^- help: add a body after the pattern: `=> todo!(),`
108
+
109
+ error: `match` arm with no body
110
+ --> $DIR/match-arm-without-body.rs:74:9
111
+ |
112
+ LL | pat!(),
113
+ | ^^^^^^- help: add a body after the pattern: `=> todo!(),`
114
+
115
+ error: aborting due to 14 previous errors
62
116
0 commit comments