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