1 #![feature(tool_lints)]
4 #![warn(clippy::unneeded_field_pattern)]
5 #[allow(dead_code, unused)]
14 let f = Foo { a: 0, b: 0, c: 0 };
17 Foo { a: _, b: 0, .. } => {}
19 Foo { a: _, b: _, c: _ } => {}
23 Foo { b: 0, .. } => {} // should be OK
24 Foo { .. } => {} // and the Force might be with this one