fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

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