]> git.lizzy.rs Git - rust.git/blob - tests/ui/suggestions/try-removing-the-field.stderr
Rollup merge of #106670 - albertlarsan68:check-docs-in-pr-ci, r=Mark-Simulacrum
[rust.git] / tests / ui / suggestions / try-removing-the-field.stderr
1 warning: unused variable: `bar`
2   --> $DIR/try-removing-the-field.rs:12:20
3    |
4 LL |     let Foo { foo, bar, .. } = x;
5    |                    ^^^-
6    |                    |
7    |                    help: try removing the field
8    |
9    = note: `#[warn(unused_variables)]` on by default
10
11 warning: unused variable: `unused`
12   --> $DIR/try-removing-the-field.rs:20:20
13    |
14 LL |         Foo { foo: unused, .. } => {
15    |                    ^^^^^^ help: if this is intentional, prefix it with an underscore: `_unused`
16
17 warning: unused variable: `foo`
18   --> $DIR/try-removing-the-field.rs:26:15
19    |
20 LL |         Foo { foo, .. } => {
21    |               ^^^-
22    |               |
23    |               help: try removing the field
24
25 warning: 3 warnings emitted
26