blob: 7706f68ba5b44ba22d74805093db8c0e68877c62 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
warning: unused variable: `t1`
--> $DIR/destructure_patterns.rs:14:14
|
LL | let (t1, t2) = t;
| ^^ help: if this is intentional, prefix it with an underscore: `_t1`
|
note: the lint level is defined here
--> $DIR/destructure_patterns.rs:3:9
|
LL | #![warn(unused)]
| ^^^^^^
= note: `#[warn(unused_variables)]` implied by `#[warn(unused)]`
warning: unused variable: `t2`
--> $DIR/destructure_patterns.rs:14:18
|
LL | let (t1, t2) = t;
| ^^ help: if this is intentional, prefix it with an underscore: `_t2`
warning: unused variable: `t1`
--> $DIR/destructure_patterns.rs:26:14
|
LL | let (t1, _) = t;
| ^^ help: if this is intentional, prefix it with an underscore: `_t1`
warning: unused variable: `t2`
--> $DIR/destructure_patterns.rs:37:17
|
LL | let (_, t2) = t;
| ^^ help: if this is intentional, prefix it with an underscore: `_t2`
warning: unused variable: `x`
--> $DIR/destructure_patterns.rs:88:21
|
LL | let Point { x, y } = p;
| ^ help: try ignoring the field: `x: _`
warning: 5 warnings emitted
|