1 error: You matched a field with a wildcard pattern. Consider using `..` instead
2 --> $DIR/unneeded_field_pattern.rs:17:15
4 17 | Foo { a: _, b: 0, .. } => {} //~ERROR You matched a field with a wildcard pattern
7 note: lint level defined here
8 --> $DIR/unneeded_field_pattern.rs:4:9
10 4 | #![deny(unneeded_field_pattern)]
11 | ^^^^^^^^^^^^^^^^^^^^^^
12 = help: Try with `Foo { b: 0, .. }`
14 error: All the struct fields are matched to a wildcard pattern, consider using `..`.
15 --> $DIR/unneeded_field_pattern.rs:19:9
17 19 | Foo { a: _, b: _, c: _ } => {} //~ERROR All the struct fields are matched to a
18 | ^^^^^^^^^^^^^^^^^^^^^^^^
20 = help: Try with `Foo { .. }` instead
22 error: aborting due to 2 previous errors