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