]> git.lizzy.rs Git - rust.git/blob - src/test/ui/lint/issue-54180-unused-ref-field.stderr
Rollup merge of #87180 - notriddle:notriddle/sidebar-keyboard-mobile, r=GuillaumeGomez
[rust.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: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: `x`
15   --> $DIR/issue-54180-unused-ref-field.rs:29:45
16    |
17 LL |     let _: i32 = points.iter().map(|Point { x, y }| y).sum();
18    |                                             ^ help: try ignoring the field: `x: _`
19
20 error: unused variable: `f1`
21   --> $DIR/issue-54180-unused-ref-field.rs:26:13
22    |
23 LL |     let S { ref f1 } = s;
24    |             ^^^^^^ help: try ignoring the field: `f1: _`
25
26 error: unused variable: `x`
27   --> $DIR/issue-54180-unused-ref-field.rs:32:20
28    |
29 LL |         Point { y, ref mut x } => y,
30    |                    ^^^^^^^^^ help: try ignoring the field: `x: _`
31
32 error: aborting due to 4 previous errors
33