2017-12-10 13:47:55 -06:00
|
|
|
error[E0004]: non-exhaustive patterns: `Foo { first: false, second: Some([_, _, _, _]) }` not covered
|
|
|
|
--> $DIR/non-exhaustive-pattern-witness.rs:20:11
|
|
|
|
|
|
|
|
|
20 | match (Foo { first: true, second: None }) {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pattern `Foo { first: false, second: Some([_, _, _, _]) }` not covered
|
|
|
|
|
|
|
|
error[E0004]: non-exhaustive patterns: `Red` not covered
|
2017-12-10 14:29:24 -06:00
|
|
|
--> $DIR/non-exhaustive-pattern-witness.rs:36:11
|
2017-12-10 13:47:55 -06:00
|
|
|
|
|
2017-12-10 14:29:24 -06:00
|
|
|
36 | match Color::Red {
|
2017-12-10 13:47:55 -06:00
|
|
|
| ^^^^^^^^^^ pattern `Red` not covered
|
|
|
|
|
|
|
|
error[E0004]: non-exhaustive patterns: `East`, `South` and `West` not covered
|
2017-12-10 14:29:24 -06:00
|
|
|
--> $DIR/non-exhaustive-pattern-witness.rs:48:11
|
2017-12-10 13:47:55 -06:00
|
|
|
|
|
2017-12-10 14:29:24 -06:00
|
|
|
48 | match Direction::North {
|
2017-12-10 13:47:55 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^ patterns `East`, `South` and `West` not covered
|
|
|
|
|
|
|
|
error[E0004]: non-exhaustive patterns: `Second`, `Third`, `Fourth` and 8 more not covered
|
2017-12-10 14:29:24 -06:00
|
|
|
--> $DIR/non-exhaustive-pattern-witness.rs:59:11
|
2017-12-10 13:47:55 -06:00
|
|
|
|
|
2017-12-10 14:29:24 -06:00
|
|
|
59 | match ExcessiveEnum::First {
|
2017-12-10 13:47:55 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^ patterns `Second`, `Third`, `Fourth` and 8 more not covered
|
|
|
|
|
|
|
|
error[E0004]: non-exhaustive patterns: `CustomRGBA { a: true, .. }` not covered
|
2017-12-10 14:29:24 -06:00
|
|
|
--> $DIR/non-exhaustive-pattern-witness.rs:67:11
|
2017-12-10 13:47:55 -06:00
|
|
|
|
|
2017-12-10 14:29:24 -06:00
|
|
|
67 | match Color::Red {
|
2017-12-10 13:47:55 -06:00
|
|
|
| ^^^^^^^^^^ pattern `CustomRGBA { a: true, .. }` not covered
|
|
|
|
|
|
|
|
error[E0004]: non-exhaustive patterns: `[Second(true), Second(false)]` not covered
|
2017-12-10 14:29:24 -06:00
|
|
|
--> $DIR/non-exhaustive-pattern-witness.rs:83:11
|
2017-12-10 13:47:55 -06:00
|
|
|
|
|
2017-12-10 14:29:24 -06:00
|
|
|
83 | match *x {
|
2017-12-10 13:47:55 -06:00
|
|
|
| ^^ pattern `[Second(true), Second(false)]` not covered
|
|
|
|
|
|
|
|
error[E0004]: non-exhaustive patterns: `((), false)` not covered
|
2017-12-10 14:29:24 -06:00
|
|
|
--> $DIR/non-exhaustive-pattern-witness.rs:96:11
|
|
|
|
|
|
|
|
|
96 | match ((), false) {
|
|
|
|
| ^^^^^^^^^^^ pattern `((), false)` not covered
|
2017-12-10 13:47:55 -06:00
|
|
|
|
|
|
|
error: aborting due to 7 previous errors
|
|
|
|
|
2018-02-19 14:40:25 -06:00
|
|
|
If you want more information on this error, try using "rustc --explain E0004"
|