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.1 KiB30 linesraw
1error[E0004]: non-exhaustive patterns: type `enums::EmptyNonExhaustiveEnum` is non-empty
2  --> $DIR/enum.rs:7: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 `enums::EmptyNonExhaustiveEnum`
9
10error[E0004]: non-exhaustive patterns: `_` not covered
11  --> $DIR/enum.rs:16:11
12   |
13LL |     match enum_unit {
14   |           ^^^^^^^^^ pattern `_` not covered
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 `enums::NonExhaustiveEnum`
18
19error[E0004]: non-exhaustive patterns: `_` not covered
20  --> $DIR/enum.rs:23:11
21   |
22LL |     match enum_unit {};
23   |           ^^^^^^^^^ pattern `_` not covered
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 `enums::NonExhaustiveEnum`
27
28error: aborting due to 3 previous errors
29
30For more information about this error, try `rustc --explain E0004`.