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