| error[E0004]: non-exhaustive patterns: type `UninhabitedEnum` is non-empty |
| --> $DIR/match_with_exhaustive_patterns.rs:22:11 |
| | |
| LL | match x {} |
| | ^ |
| | |
| = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms |
| = note: the matched value is of type `UninhabitedEnum`, which is marked as non-exhaustive |
| |
| error[E0004]: non-exhaustive patterns: type `UninhabitedStruct` is non-empty |
| --> $DIR/match_with_exhaustive_patterns.rs:26:11 |
| | |
| LL | match x {} |
| | ^ |
| | |
| = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms |
| = note: the matched value is of type `UninhabitedStruct` |
| |
| error[E0004]: non-exhaustive patterns: type `UninhabitedTupleStruct` is non-empty |
| --> $DIR/match_with_exhaustive_patterns.rs:30:11 |
| | |
| LL | match x {} |
| | ^ |
| | |
| = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms |
| = note: the matched value is of type `UninhabitedTupleStruct` |
| |
| error[E0004]: non-exhaustive patterns: `Tuple(_)` and `Struct { .. }` not covered |
| --> $DIR/match_with_exhaustive_patterns.rs:34:11 |
| | |
| LL | match x {} |
| | ^ patterns `Tuple(_)` and `Struct { .. }` not covered |
| | |
| ::: $DIR/auxiliary/uninhabited.rs:17:23 |
| | |
| LL | #[non_exhaustive] Tuple(!), |
| | ----- not covered |
| LL | #[non_exhaustive] Struct { x: ! } |
| | ------ not covered |
| | |
| = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms |
| = note: the matched value is of type `UninhabitedVariants` |
| |
| error: aborting due to 4 previous errors |
| |
| For more information about this error, try `rustc --explain E0004`. |