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