fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error: you matched a field with a wildcard pattern, consider using `..` instead 2 --> $DIR/unneeded_field_pattern.rs:18:15 3 | 4LL | Foo { a: _, b: 0, .. } => {}, 5 | ^^^^ 6 | 7 = help: try with `Foo { b: 0, .. }` 8 = note: `-D clippy::unneeded-field-pattern` implied by `-D warnings` 9 = help: to override `-D warnings` add `#[allow(clippy::unneeded_field_pattern)]` 10 11error: all the struct fields are matched to a wildcard pattern, consider using `..` 12 --> $DIR/unneeded_field_pattern.rs:20:9 13 | 14LL | Foo { a: _, b: _, c: _ } => {}, 15 | ^^^^^^^^^^^^^^^^^^^^^^^^ 16 | 17 = help: try with `Foo { .. }` instead 18 19error: aborting due to 2 previous errors 20