]> git.lizzy.rs Git - rust.git/blob - src/test/ui/pattern/usefulness/tuple-struct-nonexhaustive.stderr
Auto merge of #78682 - glandium:issue78471, r=lcnr
[rust.git] / src / test / ui / pattern / usefulness / tuple-struct-nonexhaustive.stderr
1 error[E0004]: non-exhaustive patterns: `Foo(_, _)` not covered
2   --> $DIR/tuple-struct-nonexhaustive.rs:5:11
3    |
4 LL | struct Foo(isize, isize);
5    | ------------------------- `Foo` defined here
6 ...
7 LL |     match x {
8    |           ^ pattern `Foo(_, _)` not covered
9    |
10    = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
11    = note: the matched value is of type `Foo`
12
13 error: aborting due to previous error
14
15 For more information about this error, try `rustc --explain E0004`.