@@ -11,30 +11,30 @@ LL ~ (0 | 1, 2 | 3) => {},
11
11
LL + (2_u8..=u8::MAX, _) => todo!()
12
12
|
13
13
14
- error[E0004]: non-exhaustive patterns: `((4_u8..=u8::MAX) )` not covered
14
+ error[E0004]: non-exhaustive patterns: `((4_u8..=u8::MAX,), )` not covered
15
15
--> $DIR/exhaustiveness-non-exhaustive.rs:9:11
16
16
|
17
17
LL | match ((0u8,),) {
18
- | ^^^^^^^^^ pattern `((4_u8..=u8::MAX) )` not covered
18
+ | ^^^^^^^^^ pattern `((4_u8..=u8::MAX,), )` not covered
19
19
|
20
20
= note: the matched value is of type `((u8,),)`
21
21
help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
22
22
|
23
23
LL ~ ((0 | 1,) | (2 | 3,),) => {},
24
- LL + ((4_u8..=u8::MAX) ) => todo!()
24
+ LL + ((4_u8..=u8::MAX,), ) => todo!()
25
25
|
26
26
27
- error[E0004]: non-exhaustive patterns: `(Some(2_u8..=u8::MAX))` not covered
27
+ error[E0004]: non-exhaustive patterns: `(Some(2_u8..=u8::MAX), )` not covered
28
28
--> $DIR/exhaustiveness-non-exhaustive.rs:13:11
29
29
|
30
30
LL | match (Some(0u8),) {
31
- | ^^^^^^^^^^^^ pattern `(Some(2_u8..=u8::MAX))` not covered
31
+ | ^^^^^^^^^^^^ pattern `(Some(2_u8..=u8::MAX), )` not covered
32
32
|
33
33
= note: the matched value is of type `(Option<u8>,)`
34
34
help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
35
35
|
36
36
LL ~ (None | Some(0 | 1),) => {},
37
- LL + (Some(2_u8..=u8::MAX)) => todo!()
37
+ LL + (Some(2_u8..=u8::MAX), ) => todo!()
38
38
|
39
39
40
40
error: aborting due to 3 previous errors
0 commit comments