@@ -5,7 +5,11 @@ LL | match (true, false) {
5
5
| ^^^^^^^^^^^^^ pattern `(true, false)` not covered
6
6
|
7
7
= note: the matched value is of type `(bool, bool)`
8
- = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
8
+ help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
9
+ |
10
+ LL ~ (false, true) => (),
11
+ LL + (true, false) => todo!()
12
+ |
9
13
10
14
error[E0004]: non-exhaustive patterns: `Some(Some(West))` not covered
11
15
--> $DIR/match-arm-statics-2.rs:29:11
@@ -22,7 +26,11 @@ LL | Some(#[stable(feature = "rust1", since = "1.0.0")] T),
22
26
| not covered
23
27
|
24
28
= note: the matched value is of type `Option<Option<Direction>>`
25
- = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
29
+ help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
30
+ |
31
+ LL ~ None => (),
32
+ LL + Some(Some(West)) => todo!()
33
+ |
26
34
27
35
error[E0004]: non-exhaustive patterns: `Foo { bar: Some(North), baz: NewBool(true) }` not covered
28
36
--> $DIR/match-arm-statics-2.rs:48:11
@@ -37,7 +45,11 @@ LL | match (Foo { bar: Some(North), baz: NewBool(true) }) {
37
45
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pattern `Foo { bar: Some(North), baz: NewBool(true) }` not covered
38
46
|
39
47
= note: the matched value is of type `Foo`
40
- = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
48
+ help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
49
+ |
50
+ LL ~ Foo { bar: Some(EAST), .. } => (),
51
+ LL + Foo { bar: Some(North), baz: NewBool(true) } => todo!()
52
+ |
41
53
42
54
error: aborting due to 3 previous errors
43
55
0 commit comments