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