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