rust/src/test/ui/rfc-2008-non-exhaustive/enum.stderr

28 lines
963 B
Plaintext
Raw Normal View History

2019-11-30 09:51:26 -06:00
error[E0004]: non-exhaustive patterns: type `enums::EmptyNonExhaustiveEnum` is non-empty
--> $DIR/enum.rs:7:11
|
LL | match x {}
| ^
|
= help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
2018-08-08 07:28:26 -05:00
error[E0004]: non-exhaustive patterns: `_` not covered
2019-11-30 09:51:26 -06:00
--> $DIR/enum.rs:16:11
2018-08-08 07:28:26 -05:00
|
LL | match enum_unit {
| ^^^^^^^^^ pattern `_` not covered
|
= help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
2018-08-08 07:28:26 -05:00
2019-11-30 09:51:26 -06:00
error[E0004]: non-exhaustive patterns: multiple patterns of type `enums::NonExhaustiveEnum` are not handled
--> $DIR/enum.rs:23:11
|
LL | match enum_unit {};
| ^^^^^^^^^
|
= help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
error: aborting due to 3 previous errors
2018-08-08 07:28:26 -05:00
For more information about this error, try `rustc --explain E0004`.