]> git.lizzy.rs Git - rust.git/blob - tests/ui/lint/unused/issue-54180-unused-ref-field.stderr
Auto merge of #106989 - clubby789:is-zero-num, r=scottmcm
[rust.git] / tests / ui / lint / unused / issue-54180-unused-ref-field.stderr
1 error: unused variable: `field`
2   --> $DIR/issue-54180-unused-ref-field.rs:20:22
3    |
4 LL |         E::Variant { ref field } => (),
5    |                      ^^^^^^^^^ help: try ignoring the field: `field: _`
6    |
7 note: the lint level is defined here
8   --> $DIR/issue-54180-unused-ref-field.rs:3:9
9    |
10 LL | #![deny(unused)]
11    |         ^^^^^^
12    = note: `#[deny(unused_variables)]` implied by `#[deny(unused)]`
13
14 error: unused variable: `f1`
15   --> $DIR/issue-54180-unused-ref-field.rs:26:13
16    |
17 LL |     let S { ref f1 } = s;
18    |             ^^^^^^ help: try ignoring the field: `f1: _`
19
20 error: unused variable: `x`
21   --> $DIR/issue-54180-unused-ref-field.rs:32:20
22    |
23 LL |         Point { y, ref mut x } => y,
24    |                    ^^^^^^^^^ help: try ignoring the field: `x: _`
25
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
32 error: aborting due to 4 previous errors
33