fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0004]: non-exhaustive patterns: type `UninhabitedStruct` is non-empty 2 --> $DIR/match_same_crate.rs:30:11 3 | 4LL | match x {} 5 | ^ 6 | 7note: `UninhabitedStruct` defined here 8 --> $DIR/match_same_crate.rs:8:12 9 | 10LL | pub struct UninhabitedStruct { 11 | ^^^^^^^^^^^^^^^^^ 12 = note: the matched value is of type `UninhabitedStruct` 13help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern as shown 14 | 15LL ~ match x { 16LL + _ => todo!(), 17LL ~ } 18 | 19 20error[E0004]: non-exhaustive patterns: type `UninhabitedTupleStruct` is non-empty 21 --> $DIR/match_same_crate.rs:34:11 22 | 23LL | match x {} 24 | ^ 25 | 26note: `UninhabitedTupleStruct` defined here 27 --> $DIR/match_same_crate.rs:13:12 28 | 29LL | pub struct UninhabitedTupleStruct(!); 30 | ^^^^^^^^^^^^^^^^^^^^^^ 31 = note: the matched value is of type `UninhabitedTupleStruct` 32help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern as shown 33 | 34LL ~ match x { 35LL + _ => todo!(), 36LL ~ } 37 | 38 39error[E0004]: non-exhaustive patterns: `UninhabitedVariants::Tuple(_)` and `UninhabitedVariants::Struct { .. }` not covered 40 --> $DIR/match_same_crate.rs:38:11 41 | 42LL | match x {} 43 | ^ patterns `UninhabitedVariants::Tuple(_)` and `UninhabitedVariants::Struct { .. }` not covered 44 | 45note: `UninhabitedVariants` defined here 46 --> $DIR/match_same_crate.rs:16:23 47 | 48LL | pub enum UninhabitedVariants { 49 | ------------------- 50LL | #[non_exhaustive] Tuple(!), 51 | ^^^^^ not covered 52LL | #[non_exhaustive] Struct { x: ! } 53 | ^^^^^^ not covered 54 = note: the matched value is of type `UninhabitedVariants` 55help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern, a match arm with multiple or-patterns as shown, or multiple match arms 56 | 57LL ~ match x { 58LL + UninhabitedVariants::Tuple(_) | UninhabitedVariants::Struct { .. } => todo!(), 59LL ~ } 60 | 61 62error: aborting due to 3 previous errors 63 64For more information about this error, try `rustc --explain E0004`.