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