rust/src/test/ui/tuple/tuple-struct-nonexhaustive.stderr

15 lines
516 B
Plaintext
Raw Normal View History

2018-08-08 07:28:26 -05:00
error[E0004]: non-exhaustive patterns: `Foo(_, _)` not covered
2018-12-25 09:56:47 -06:00
--> $DIR/tuple-struct-nonexhaustive.rs:5:11
2018-08-08 07:28:26 -05:00
|
LL | struct Foo(isize, isize);
| ------------------------- `Foo` defined here
...
2018-08-08 07:28:26 -05:00
LL | match x { //~ ERROR non-exhaustive
| ^ pattern `Foo(_, _)` 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
error: aborting due to previous error
For more information about this error, try `rustc --explain E0004`.