]>
Commit | Line | Data |
---|---|---|
6a06907d XL |
1 | warning: the feature `capture_disjoint_fields` is incomplete and may not be safe to use and/or cause compiler crashes |
2 | --> $DIR/destructure_patterns.rs:2:12 | |
3 | | | |
4 | LL | #![feature(capture_disjoint_fields)] | |
5 | | ^^^^^^^^^^^^^^^^^^^^^^^ | |
6 | | | |
7 | = note: `#[warn(incomplete_features)]` on by default | |
8 | = note: see issue #53488 <https://github.com/rust-lang/rust/issues/53488> for more information | |
9 | ||
10 | warning: unused variable: `t1` | |
11 | --> $DIR/destructure_patterns.rs:15:14 | |
12 | | | |
13 | LL | let (t1, t2) = t; | |
14 | | ^^ help: if this is intentional, prefix it with an underscore: `_t1` | |
15 | | | |
16 | note: the lint level is defined here | |
17 | --> $DIR/destructure_patterns.rs:4:9 | |
18 | | | |
19 | LL | #![warn(unused)] | |
20 | | ^^^^^^ | |
21 | = note: `#[warn(unused_variables)]` implied by `#[warn(unused)]` | |
22 | ||
23 | warning: unused variable: `t2` | |
24 | --> $DIR/destructure_patterns.rs:15:18 | |
25 | | | |
26 | LL | let (t1, t2) = t; | |
27 | | ^^ help: if this is intentional, prefix it with an underscore: `_t2` | |
28 | ||
29 | warning: unused variable: `t1` | |
30 | --> $DIR/destructure_patterns.rs:27:14 | |
31 | | | |
32 | LL | let (t1, _) = t; | |
33 | | ^^ help: if this is intentional, prefix it with an underscore: `_t1` | |
34 | ||
35 | warning: unused variable: `t2` | |
36 | --> $DIR/destructure_patterns.rs:38:17 | |
37 | | | |
38 | LL | let (_, t2) = t; | |
39 | | ^^ help: if this is intentional, prefix it with an underscore: `_t2` | |
40 | ||
41 | warning: unused variable: `t` | |
42 | --> $DIR/destructure_patterns.rs:46:9 | |
43 | | | |
44 | LL | let t = (String::from("Hello"), String::from("World")); | |
45 | | ^ help: if this is intentional, prefix it with an underscore: `_t` | |
46 | ||
47 | warning: unused variable: `x` | |
48 | --> $DIR/destructure_patterns.rs:92:21 | |
49 | | | |
50 | LL | let Point { x, y } = p; | |
51 | | ^ help: try ignoring the field: `x: _` | |
52 | ||
53 | warning: unused variable: `x` | |
54 | --> $DIR/destructure_patterns.rs:84:9 | |
55 | | | |
56 | LL | let x = 0; | |
57 | | ^ help: if this is intentional, prefix it with an underscore: `_x` | |
58 | ||
59 | warning: unused variable: `tup` | |
60 | --> $DIR/destructure_patterns.rs:86:9 | |
61 | | | |
62 | LL | let tup = (1, 2); | |
63 | | ^^^ help: if this is intentional, prefix it with an underscore: `_tup` | |
64 | ||
65 | warning: 9 warnings emitted | |
66 |