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