| error[E0004]: non-exhaustive patterns: `A` not covered |
| --> $DIR/non-exhaustive-match.rs:8:11 |
| | |
| LL | enum T { A, B } |
| | --------------- |
| | | | |
| | | not covered |
| | `T` defined here |
| ... |
| LL | match x { T::B => { } } |
| | ^ pattern `A` not covered |
| | |
| = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms |
| |
| error[E0004]: non-exhaustive patterns: `false` not covered |
| --> $DIR/non-exhaustive-match.rs:9:11 |
| | |
| LL | match true { |
| | ^^^^ pattern `false` not covered |
| | |
| = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms |
| |
| error[E0004]: non-exhaustive patterns: `Some(_)` not covered |
| --> $DIR/non-exhaustive-match.rs:12:11 |
| | |
| LL | match Some(10) { |
| | ^^^^^^^^ pattern `Some(_)` not covered |
| | |
| = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms |
| |
| error[E0004]: non-exhaustive patterns: `(_, _, std::i32::MIN..=3i32)` and `(_, _, 5i32..=std::i32::MAX)` not covered |
| --> $DIR/non-exhaustive-match.rs:15:11 |
| | |
| LL | match (2, 3, 4) { |
| | ^^^^^^^^^ patterns `(_, _, std::i32::MIN..=3i32)` and `(_, _, 5i32..=std::i32::MAX)` not covered |
| | |
| = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms |
| |
| error[E0004]: non-exhaustive patterns: `(A, A)` not covered |
| --> $DIR/non-exhaustive-match.rs:19:11 |
| | |
| LL | match (T::A, T::A) { |
| | ^^^^^^^^^^^^ pattern `(A, A)` not covered |
| | |
| = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms |
| |
| error[E0004]: non-exhaustive patterns: `B` not covered |
| --> $DIR/non-exhaustive-match.rs:23:11 |
| | |
| LL | enum T { A, B } |
| | --------------- |
| | | | |
| | | not covered |
| | `T` defined here |
| ... |
| LL | match T::A { |
| | ^^^^ pattern `B` not covered |
| | |
| = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms |
| |
| error[E0004]: non-exhaustive patterns: `[]` not covered |
| --> $DIR/non-exhaustive-match.rs:34:11 |
| | |
| LL | match *vec { |
| | ^^^^ pattern `[]` not covered |
| | |
| = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms |
| |
| error[E0004]: non-exhaustive patterns: `[_, _, _, _]` not covered |
| --> $DIR/non-exhaustive-match.rs:47:11 |
| | |
| LL | match *vec { |
| | ^^^^ pattern `[_, _, _, _]` not covered |
| | |
| = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms |
| |
| error: aborting due to 8 previous errors |
| |
| For more information about this error, try `rustc --explain E0004`. |