]> git.proxmox.com Git - rustc.git/blame - src/test/ui/rfc-2008-non-exhaustive/uninhabited/indirect_match_same_crate.stderr
New upstream version 1.41.1+dfsg1
[rustc.git] / src / test / ui / rfc-2008-non-exhaustive / uninhabited / indirect_match_same_crate.stderr
CommitLineData
60c5eb7d 1error[E0004]: non-exhaustive patterns: type `IndirectUninhabitedEnum` is non-empty
e74abb32 2 --> $DIR/indirect_match_same_crate.rs:34:11
48663c56
XL
3 |
4LL | pub struct IndirectUninhabitedEnum(UninhabitedEnum);
60c5eb7d 5 | ---------------------------------------------------- `IndirectUninhabitedEnum` defined here
48663c56
XL
6...
7LL | match x {}
8 | ^
9 |
10 = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
11
60c5eb7d 12error[E0004]: non-exhaustive patterns: type `IndirectUninhabitedStruct` is non-empty
e74abb32 13 --> $DIR/indirect_match_same_crate.rs:38:11
48663c56
XL
14 |
15LL | pub struct IndirectUninhabitedStruct(UninhabitedStruct);
60c5eb7d 16 | -------------------------------------------------------- `IndirectUninhabitedStruct` defined here
48663c56
XL
17...
18LL | match x {}
19 | ^
20 |
21 = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
22
60c5eb7d 23error[E0004]: non-exhaustive patterns: type `IndirectUninhabitedTupleStruct` is non-empty
e74abb32 24 --> $DIR/indirect_match_same_crate.rs:42:11
48663c56
XL
25 |
26LL | pub struct IndirectUninhabitedTupleStruct(UninhabitedTupleStruct);
60c5eb7d 27 | ------------------------------------------------------------------ `IndirectUninhabitedTupleStruct` defined here
48663c56
XL
28...
29LL | match x {}
30 | ^
31 |
32 = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
33
60c5eb7d 34error[E0004]: non-exhaustive patterns: type `IndirectUninhabitedVariants` is non-empty
e74abb32 35 --> $DIR/indirect_match_same_crate.rs:48:11
48663c56
XL
36 |
37LL | pub struct IndirectUninhabitedVariants(UninhabitedVariants);
60c5eb7d 38 | ------------------------------------------------------------ `IndirectUninhabitedVariants` defined here
48663c56
XL
39...
40LL | match x {}
41 | ^
42 |
43 = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
44
45error: aborting due to 4 previous errors
46
47For more information about this error, try `rustc --explain E0004`.