]>
Commit | Line | Data |
---|---|---|
1b1a35ee | 1 | error[E0004]: non-exhaustive patterns: type `IndirectUninhabitedEnum` is non-empty |
48663c56 XL |
2 | --> $DIR/indirect_match.rs:19:11 |
3 | | | |
4 | LL | match x {} | |
5 | | ^ | |
6 | | | |
5e7ed085 FG |
7 | note: `IndirectUninhabitedEnum` defined here |
8 | --> $DIR/auxiliary/uninhabited.rs:26:1 | |
9 | | | |
10 | LL | pub struct IndirectUninhabitedEnum(UninhabitedEnum); | |
064997fb | 11 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
1b1a35ee | 12 | = note: the matched value is of type `IndirectUninhabitedEnum` |
5e7ed085 FG |
13 | help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern as shown |
14 | | | |
15 | LL ~ match x { | |
16 | LL + _ => todo!(), | |
17 | LL ~ } | |
18 | | | |
48663c56 | 19 | |
1b1a35ee | 20 | error[E0004]: non-exhaustive patterns: type `IndirectUninhabitedStruct` is non-empty |
48663c56 XL |
21 | --> $DIR/indirect_match.rs:23:11 |
22 | | | |
23 | LL | match x {} | |
24 | | ^ | |
25 | | | |
5e7ed085 FG |
26 | note: `IndirectUninhabitedStruct` defined here |
27 | --> $DIR/auxiliary/uninhabited.rs:28:1 | |
28 | | | |
29 | LL | pub struct IndirectUninhabitedStruct(UninhabitedStruct); | |
064997fb | 30 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
1b1a35ee | 31 | = note: the matched value is of type `IndirectUninhabitedStruct` |
5e7ed085 FG |
32 | help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern as shown |
33 | | | |
34 | LL ~ match x { | |
35 | LL + _ => todo!(), | |
36 | LL ~ } | |
37 | | | |
48663c56 | 38 | |
1b1a35ee | 39 | error[E0004]: non-exhaustive patterns: type `IndirectUninhabitedTupleStruct` is non-empty |
48663c56 XL |
40 | --> $DIR/indirect_match.rs:27:11 |
41 | | | |
42 | LL | match x {} | |
43 | | ^ | |
44 | | | |
5e7ed085 FG |
45 | note: `IndirectUninhabitedTupleStruct` defined here |
46 | --> $DIR/auxiliary/uninhabited.rs:30:1 | |
47 | | | |
48 | LL | pub struct IndirectUninhabitedTupleStruct(UninhabitedTupleStruct); | |
064997fb | 49 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
1b1a35ee | 50 | = note: the matched value is of type `IndirectUninhabitedTupleStruct` |
5e7ed085 FG |
51 | help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern as shown |
52 | | | |
53 | LL ~ match x { | |
54 | LL + _ => todo!(), | |
55 | LL ~ } | |
56 | | | |
48663c56 | 57 | |
1b1a35ee | 58 | error[E0004]: non-exhaustive patterns: type `IndirectUninhabitedVariants` is non-empty |
48663c56 XL |
59 | --> $DIR/indirect_match.rs:33:11 |
60 | | | |
61 | LL | match x {} | |
62 | | ^ | |
63 | | | |
5e7ed085 FG |
64 | note: `IndirectUninhabitedVariants` defined here |
65 | --> $DIR/auxiliary/uninhabited.rs:32:1 | |
66 | | | |
67 | LL | pub struct IndirectUninhabitedVariants(UninhabitedVariants); | |
064997fb | 68 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
1b1a35ee | 69 | = note: the matched value is of type `IndirectUninhabitedVariants` |
5e7ed085 FG |
70 | help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern as shown |
71 | | | |
72 | LL ~ match x { | |
73 | LL + _ => todo!(), | |
74 | LL ~ } | |
75 | | | |
48663c56 XL |
76 | |
77 | error: aborting due to 4 previous errors | |
78 | ||
79 | For more information about this error, try `rustc --explain E0004`. |