]> git.proxmox.com Git - rustc.git/blame - src/test/ui/closures/2229_closure_analysis/run_pass/destructure_patterns.stderr
Merge tag 'debian/1.52.1+dfsg1-1_exp2' into proxmox/buster
[rustc.git] / src / test / ui / closures / 2229_closure_analysis / run_pass / destructure_patterns.stderr
CommitLineData
6a06907d
XL
1warning: 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 |
4LL | #![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
10warning: unused variable: `t1`
11 --> $DIR/destructure_patterns.rs:15:14
12 |
13LL | let (t1, t2) = t;
14 | ^^ help: if this is intentional, prefix it with an underscore: `_t1`
15 |
16note: the lint level is defined here
17 --> $DIR/destructure_patterns.rs:4:9
18 |
19LL | #![warn(unused)]
20 | ^^^^^^
21 = note: `#[warn(unused_variables)]` implied by `#[warn(unused)]`
22
23warning: unused variable: `t2`
24 --> $DIR/destructure_patterns.rs:15:18
25 |
26LL | let (t1, t2) = t;
27 | ^^ help: if this is intentional, prefix it with an underscore: `_t2`
28
29warning: unused variable: `t1`
30 --> $DIR/destructure_patterns.rs:27:14
31 |
32LL | let (t1, _) = t;
33 | ^^ help: if this is intentional, prefix it with an underscore: `_t1`
34
35warning: unused variable: `t2`
36 --> $DIR/destructure_patterns.rs:38:17
37 |
38LL | let (_, t2) = t;
39 | ^^ help: if this is intentional, prefix it with an underscore: `_t2`
40
41warning: unused variable: `t`
42 --> $DIR/destructure_patterns.rs:46:9
43 |
44LL | let t = (String::from("Hello"), String::from("World"));
45 | ^ help: if this is intentional, prefix it with an underscore: `_t`
46
47warning: unused variable: `x`
48 --> $DIR/destructure_patterns.rs:92:21
49 |
50LL | let Point { x, y } = p;
51 | ^ help: try ignoring the field: `x: _`
52
53warning: unused variable: `x`
54 --> $DIR/destructure_patterns.rs:84:9
55 |
56LL | let x = 0;
57 | ^ help: if this is intentional, prefix it with an underscore: `_x`
58
59warning: unused variable: `tup`
60 --> $DIR/destructure_patterns.rs:86:9
61 |
62LL | let tup = (1, 2);
63 | ^^^ help: if this is intentional, prefix it with an underscore: `_tup`
64
65warning: 9 warnings emitted
66