fork/rust

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

borsAuto merge of #72883 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum49cae55760d

1.44.0
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: `x`
15  --> $DIR/issue-54180-unused-ref-field.rs:29:45
16   |
17LL |     let _: i32 = points.iter().map(|Point { x, y }| y).sum();
18   |                                             ^ help: try ignoring the field: `x: _`
19
20error: unused variable: `f1`
21  --> $DIR/issue-54180-unused-ref-field.rs:26:13
22   |
23LL |     let S { ref f1 } = s;
24   |             ^^^^^^ help: try ignoring the field: `f1: _`
25
26error: unused variable: `x`
27  --> $DIR/issue-54180-unused-ref-field.rs:32:20
28   |
29LL |         Point { y, ref mut x } => y,
30   |                    ^^^^^^^^^ help: try ignoring the field: `x: _`
31
32error: aborting due to 4 previous errors
33