|
| 1 | +error[E0004]: non-exhaustive patterns: pattern `IndirectUninhabitedEnum` of type `IndirectUninhabitedEnum` is not handled |
| 2 | + --> $DIR/indirect_match_same_crate.rs:35:11 |
| 3 | + | |
| 4 | +LL | pub struct IndirectUninhabitedEnum(UninhabitedEnum); |
| 5 | + | ---------------------------------------------------- |
| 6 | + | | | |
| 7 | + | | variant not covered |
| 8 | + | `IndirectUninhabitedEnum` defined here |
| 9 | +... |
| 10 | +LL | match x {} |
| 11 | + | ^ |
| 12 | + | |
| 13 | + = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms |
| 14 | + |
| 15 | +error[E0004]: non-exhaustive patterns: pattern `IndirectUninhabitedStruct` of type `IndirectUninhabitedStruct` is not handled |
| 16 | + --> $DIR/indirect_match_same_crate.rs:39:11 |
| 17 | + | |
| 18 | +LL | pub struct IndirectUninhabitedStruct(UninhabitedStruct); |
| 19 | + | -------------------------------------------------------- |
| 20 | + | | | |
| 21 | + | | variant not covered |
| 22 | + | `IndirectUninhabitedStruct` defined here |
| 23 | +... |
| 24 | +LL | match x {} |
| 25 | + | ^ |
| 26 | + | |
| 27 | + = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms |
| 28 | + |
| 29 | +error[E0004]: non-exhaustive patterns: pattern `IndirectUninhabitedTupleStruct` of type `IndirectUninhabitedTupleStruct` is not handled |
| 30 | + --> $DIR/indirect_match_same_crate.rs:43:11 |
| 31 | + | |
| 32 | +LL | pub struct IndirectUninhabitedTupleStruct(UninhabitedTupleStruct); |
| 33 | + | ------------------------------------------------------------------ |
| 34 | + | | | |
| 35 | + | | variant not covered |
| 36 | + | `IndirectUninhabitedTupleStruct` defined here |
| 37 | +... |
| 38 | +LL | match x {} |
| 39 | + | ^ |
| 40 | + | |
| 41 | + = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms |
| 42 | + |
| 43 | +error[E0004]: non-exhaustive patterns: pattern `IndirectUninhabitedVariants` of type `IndirectUninhabitedVariants` is not handled |
| 44 | + --> $DIR/indirect_match_same_crate.rs:49:11 |
| 45 | + | |
| 46 | +LL | pub struct IndirectUninhabitedVariants(UninhabitedVariants); |
| 47 | + | ------------------------------------------------------------ |
| 48 | + | | | |
| 49 | + | | variant not covered |
| 50 | + | `IndirectUninhabitedVariants` defined here |
| 51 | +... |
| 52 | +LL | match x {} |
| 53 | + | ^ |
| 54 | + | |
| 55 | + = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms |
| 56 | + |
| 57 | +error: aborting due to 4 previous errors |
| 58 | + |
| 59 | +For more information about this error, try `rustc --explain E0004`. |
0 commit comments