fork/rust

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

borsAuto merge of #69854 - pietroalbini:stable-next, r=Centrilb8cedc00407

1.42.0
934 B27 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
9error[E0004]: non-exhaustive patterns: `_` not covered
10  --> $DIR/enum.rs:16:11
11   |
12LL |     match enum_unit {
13   |           ^^^^^^^^^ pattern `_` not covered
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: `_` not covered
18  --> $DIR/enum.rs:23:11
19   |
20LL |     match enum_unit {};
21   |           ^^^^^^^^^ pattern `_` not covered
22   |
23   = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
24
25error: aborting due to 3 previous errors
26
27For more information about this error, try `rustc --explain E0004`.