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