1 error[E0004]: non-exhaustive patterns: type `UninhabitedStruct` is non-empty
2 --> $DIR/match_same_crate.rs:30:11
7 note: `UninhabitedStruct` defined here
8 --> $DIR/match_same_crate.rs:8:12
10 LL | pub struct UninhabitedStruct {
12 = note: the matched value is of type `UninhabitedStruct`
13 help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern as shown
20 error[E0004]: non-exhaustive patterns: type `UninhabitedTupleStruct` is non-empty
21 --> $DIR/match_same_crate.rs:34:11
26 note: `UninhabitedTupleStruct` defined here
27 --> $DIR/match_same_crate.rs:13:12
29 LL | pub struct UninhabitedTupleStruct(!);
30 | ^^^^^^^^^^^^^^^^^^^^^^
31 = note: the matched value is of type `UninhabitedTupleStruct`
32 help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern as shown
39 error[E0004]: non-exhaustive patterns: `UninhabitedVariants::Tuple(_)` and `UninhabitedVariants::Struct { .. }` not covered
40 --> $DIR/match_same_crate.rs:38:11
43 | ^ patterns `UninhabitedVariants::Tuple(_)` and `UninhabitedVariants::Struct { .. }` not covered
45 note: `UninhabitedVariants` defined here
46 --> $DIR/match_same_crate.rs:16:23
48 LL | pub enum UninhabitedVariants {
50 LL | #[non_exhaustive] Tuple(!),
52 LL | #[non_exhaustive] Struct { x: ! }
54 = note: the matched value is of type `UninhabitedVariants`
55 help: 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
58 LL + UninhabitedVariants::Tuple(_) | UninhabitedVariants::Struct { .. } => todo!(),
62 error: aborting due to 3 previous errors
64 For more information about this error, try `rustc --explain E0004`.