fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #67350 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum73528e339aa

1.40.0
1.4 KiB35 linesraw
1error[E0004]: non-exhaustive patterns: pattern `IndirectUninhabitedEnum` of type `uninhabited::IndirectUninhabitedEnum` is not handled
2  --> $DIR/indirect_match.rs:19:11
3   |
4LL |     match x {}
5   |           ^
6   |
7   = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
8
9error[E0004]: non-exhaustive patterns: pattern `IndirectUninhabitedStruct` of type `uninhabited::IndirectUninhabitedStruct` is not handled
10  --> $DIR/indirect_match.rs:23:11
11   |
12LL |     match x {}
13   |           ^
14   |
15   = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
16
17error[E0004]: non-exhaustive patterns: pattern `IndirectUninhabitedTupleStruct` of type `uninhabited::IndirectUninhabitedTupleStruct` is not handled
18  --> $DIR/indirect_match.rs:27:11
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: pattern `IndirectUninhabitedVariants` of type `uninhabited::IndirectUninhabitedVariants` is not handled
26  --> $DIR/indirect_match.rs:33:11
27   |
28LL |     match x {}
29   |           ^
30   |
31   = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
32
33error: aborting due to 4 previous errors
34
35For more information about this error, try `rustc --explain E0004`.