fork/rust

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

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

master
1.0 KiB33 linesraw
1error: unused variable: `field`
2  --> $DIR/issue-54180-unused-ref-field.rs:20:22
3   |
4LL |         E::Variant { ref field } => (),
5   |                      ^^^^^^^^^ help: try ignoring the field: `field: _`
6   |
7note: the lint level is defined here
8  --> $DIR/issue-54180-unused-ref-field.rs:3:9
9   |
10LL | #![deny(unused)]
11   |         ^^^^^^
12   = note: `#[deny(unused_variables)]` implied by `#[deny(unused)]`
13
14error: unused variable: `f1`
15  --> $DIR/issue-54180-unused-ref-field.rs:26:13
16   |
17LL |     let S { ref f1 } = s;
18   |             ^^^^^^ help: try ignoring the field: `f1: _`
19
20error: unused variable: `x`
21  --> $DIR/issue-54180-unused-ref-field.rs:32:20
22   |
23LL |         Point { y, ref mut x } => y,
24   |                    ^^^^^^^^^ help: try ignoring the field: `x: _`
25
26error: unused variable: `x`
27  --> $DIR/issue-54180-unused-ref-field.rs:29:45
28   |
29LL |     let _: i32 = points.iter().map(|Point { x, y }| y).sum();
30   |                                             ^ help: try ignoring the field: `x: _`
31
32error: aborting due to 4 previous errors
33