1 error: you matched a field with a wildcard pattern, consider using `..` instead
2 --> $DIR/unneeded_field_pattern.rs:14:15
4 LL | Foo { a: _, b: 0, .. } => {},
7 = note: `-D clippy::unneeded-field-pattern` implied by `-D warnings`
8 = help: try with `Foo { b: 0, .. }`
10 error: all the struct fields are matched to a wildcard pattern, consider using `..`
11 --> $DIR/unneeded_field_pattern.rs:16:9
13 LL | Foo { a: _, b: _, c: _ } => {},
14 | ^^^^^^^^^^^^^^^^^^^^^^^^
16 = help: try with `Foo { .. }` instead
18 error: aborting due to 2 previous errors