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