11 fn use_foo(x: Foo) -> i32 {
12 let Foo { foo, bar, .. } = x; //~ WARNING unused variable: `bar`
13 //~| help: try removing the field
17 // issue #105028, suggest removing the field only for shorthand
18 fn use_match(x: Foo) {
20 Foo { foo: unused, .. } => { //~ WARNING unused variable
21 //~| help: if this is intentional, prefix it with an underscore
26 Foo { foo, .. } => { //~ WARNING unused variable
27 //~| help: try removing the field