]>
Commit | Line | Data |
---|---|---|
b7449926 | 1 | error[E0004]: non-exhaustive patterns: `(true, false)` not covered |
e74abb32 | 2 | --> $DIR/match-arm-statics-2.rs:17:11 |
b7449926 XL |
3 | | |
4 | LL | match (true, false) { | |
5 | | ^^^^^^^^^^^^^ pattern `(true, false)` not covered | |
532ac7d7 XL |
6 | | |
7 | = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms | |
ba9703b0 | 8 | = note: the matched value is of type `(bool, bool)` |
b7449926 XL |
9 | |
10 | error[E0004]: non-exhaustive patterns: `Some(Some(West))` not covered | |
e74abb32 | 11 | --> $DIR/match-arm-statics-2.rs:29:11 |
b7449926 XL |
12 | | |
13 | LL | match Some(Some(North)) { | |
14 | | ^^^^^^^^^^^^^^^^^ pattern `Some(Some(West))` not covered | |
ba9703b0 | 15 | | |
3dfed10e | 16 | ::: $SRC_DIR/core/src/option.rs:LL:COL |
ba9703b0 XL |
17 | | |
18 | LL | Some(#[stable(feature = "rust1", since = "1.0.0")] T), | |
19 | | ---- | |
20 | | | | |
21 | | not covered | |
22 | | not covered | |
532ac7d7 XL |
23 | | |
24 | = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms | |
1b1a35ee | 25 | = note: the matched value is of type `Option<Option<Direction>>` |
b7449926 XL |
26 | |
27 | error[E0004]: non-exhaustive patterns: `Foo { bar: Some(North), baz: NewBool(true) }` not covered | |
e74abb32 | 28 | --> $DIR/match-arm-statics-2.rs:48:11 |
b7449926 | 29 | | |
532ac7d7 XL |
30 | LL | / struct Foo { |
31 | LL | | bar: Option<Direction>, | |
32 | LL | | baz: NewBool | |
33 | LL | | } | |
34 | | |_- `Foo` defined here | |
35 | ... | |
36 | LL | match (Foo { bar: Some(North), baz: NewBool(true) }) { | |
37 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pattern `Foo { bar: Some(North), baz: NewBool(true) }` not covered | |
38 | | | |
39 | = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms | |
ba9703b0 | 40 | = note: the matched value is of type `Foo` |
b7449926 XL |
41 | |
42 | error: aborting due to 3 previous errors | |
43 | ||
44 | For more information about this error, try `rustc --explain E0004`. |