11error: 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
33 |
44LL | Some(_)
55 | - expected one of `,`, `=>`, `if`, `|`, or `}`
66LL | _ => {}
77 | ^ unexpected token
88
99error: unexpected `,` in pattern
10- --> $DIR/match-arm-without-body.rs:15 :16
10+ --> $DIR/match-arm-without-body.rs:17 :16
1111 |
1212LL | Some(_),
1313 | ^
@@ -22,7 +22,7 @@ LL | Some(_) |
2222 |
2323
2424error: unexpected `,` in pattern
25- --> $DIR/match-arm-without-body.rs:21 :16
25+ --> $DIR/match-arm-without-body.rs:23 :16
2626 |
2727LL | Some(_),
2828 | ^
@@ -45,18 +45,72 @@ LL ~ _ => {}
4545 |
4646
4747error: 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
4949 |
5050LL | Some(_) if true
5151 | - expected one of `,`, `.`, `=>`, `?`, `}`, or an operator
5252LL | _ => {}
5353 | ^ unexpected token
5454
5555error: expected `,` following `match` arm
56- --> $DIR/match-arm-without-body.rs:52 :15
56+ --> $DIR/match-arm-without-body.rs:66 :15
5757 |
5858LL | pat!()
5959 | ^ help: missing a comma here to end this `match` arm: `,`
6060
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
62116
0 commit comments