fork/rust

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

borsAuto merge of #72883 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum49cae55760d

1.44.0
1.7 KiB46 linesraw
1error[E0004]: non-exhaustive patterns: type `uninhabited::UninhabitedEnum` is non-empty
2  --> $DIR/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   = note: the matched value is of type `uninhabited::UninhabitedEnum`
9
10error[E0004]: non-exhaustive patterns: type `uninhabited::UninhabitedStruct` is non-empty
11  --> $DIR/match.rs:23:11
12   |
13LL |     match x {}
14   |           ^
15   |
16   = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
17   = note: the matched value is of type `uninhabited::UninhabitedStruct`
18
19error[E0004]: non-exhaustive patterns: type `uninhabited::UninhabitedTupleStruct` is non-empty
20  --> $DIR/match.rs:27:11
21   |
22LL |     match x {}
23   |           ^
24   |
25   = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
26   = note: the matched value is of type `uninhabited::UninhabitedTupleStruct`
27
28error[E0004]: non-exhaustive patterns: `Tuple(_)` and `Struct { .. }` not covered
29  --> $DIR/match.rs:31:11
30   |
31LL |     match x {}
32   |           ^ patterns `Tuple(_)` and `Struct { .. }` not covered
33   | 
34  ::: $DIR/auxiliary/uninhabited.rs:17:23
35   |
36LL |     #[non_exhaustive] Tuple(!),
37   |                       ----- not covered
38LL |     #[non_exhaustive] Struct { x: ! }
39   |                       ------ not covered
40   |
41   = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
42   = note: the matched value is of type `uninhabited::UninhabitedVariants`
43
44error: aborting due to 4 previous errors
45
46For more information about this error, try `rustc --explain E0004`.