]> git.lizzy.rs Git - rust.git/blob - src/test/ui/pattern/usefulness/issue-39362.stderr
Rollup merge of #80298 - PankajChaudhary5:PankajChaudhary, r=GuillaumeGomez
[rust.git] / src / test / ui / pattern / usefulness / issue-39362.stderr
1 error[E0004]: non-exhaustive patterns: `Bar { bar: C, .. }`, `Bar { bar: D, .. }`, `Bar { bar: E, .. }` and 1 more not covered
2   --> $DIR/issue-39362.rs:10:11
3    |
4 LL | / enum Foo {
5 LL | |     Bar { bar: Bar, id: usize }
6 LL | | }
7    | |_- `Foo` defined here
8 ...
9 LL |       match f {
10    |             ^ patterns `Bar { bar: C, .. }`, `Bar { bar: D, .. }`, `Bar { bar: E, .. }` and 1 more not covered
11    |
12    = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
13    = note: the matched value is of type `Foo`
14
15 error: aborting due to previous error
16
17 For more information about this error, try `rustc --explain E0004`.