fork/rust
git clone https://git.julia.blue/fork/rust
4560ea788cb
1.39.0
1error[E0004]: non-exhaustive patterns: pattern `UninhabitedStruct` of type `UninhabitedStruct` is not handled 2 --> $DIR/match_same_crate.rs:31:11 3 | 4LL | pub struct UninhabitedStruct { 5 | - ----------------- variant not covered 6 | _| 7 | | 8LL | | _priv: !, 9LL | | } 10 | |_- `UninhabitedStruct` defined here 11... 12LL | match x {} 13 | ^ 14 | 15 = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms 16 17error[E0004]: non-exhaustive patterns: pattern `UninhabitedTupleStruct` of type `UninhabitedTupleStruct` is not handled 18 --> $DIR/match_same_crate.rs:35:11 19 | 20LL | pub struct UninhabitedTupleStruct(!); 21 | ------------------------------------- 22 | | | 23 | | variant not covered 24 | `UninhabitedTupleStruct` defined here 25... 26LL | match x {} 27 | ^ 28 | 29 = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms 30 31error[E0004]: non-exhaustive patterns: multiple patterns of type `UninhabitedVariants` are not handled 32 --> $DIR/match_same_crate.rs:39:11 33 | 34LL | / pub enum UninhabitedVariants { 35LL | | #[non_exhaustive] Tuple(!), 36 | | ----- variant not covered 37LL | | #[non_exhaustive] Struct { x: ! } 38 | | ------ variant not covered 39LL | | } 40 | |_- `UninhabitedVariants` defined here 41... 42LL | match x {} 43 | ^ 44 | 45 = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms 46 47error: aborting due to 3 previous errors 48 49For more information about this error, try `rustc --explain E0004`.