1 warning: unused variable: `bar`
2 --> $DIR/try-removing-the-field.rs:12:20
4 LL | let Foo { foo, bar, .. } = x;
7 | help: try removing the field
9 = note: `#[warn(unused_variables)]` on by default
11 warning: unused variable: `unused`
12 --> $DIR/try-removing-the-field.rs:20:20
14 LL | Foo { foo: unused, .. } => {
15 | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_unused`
17 warning: unused variable: `foo`
18 --> $DIR/try-removing-the-field.rs:26:15
20 LL | Foo { foo, .. } => {
23 | help: try removing the field
25 warning: 3 warnings emitted