]> git.proxmox.com Git - rustc.git/blob - src/test/ui/liveness/liveness-unused.stderr
New upstream version 1.52.0~beta.3+dfsg1
[rustc.git] / src / test / ui / liveness / liveness-unused.stderr
1 warning: unreachable statement
2 --> $DIR/liveness-unused.rs:92:9
3 |
4 LL | continue;
5 | -------- any code following this expression is unreachable
6 LL | drop(*x as i32);
7 | ^^^^^^^^^^^^^^^^ unreachable statement
8 |
9 note: the lint level is defined here
10 --> $DIR/liveness-unused.rs:1:9
11 |
12 LL | #![warn(unused)]
13 | ^^^^^^
14 = note: `#[warn(unreachable_code)]` implied by `#[warn(unused)]`
15
16 error: unused variable: `x`
17 --> $DIR/liveness-unused.rs:8:7
18 |
19 LL | fn f1(x: isize) {
20 | ^ help: if this is intentional, prefix it with an underscore: `_x`
21 |
22 note: the lint level is defined here
23 --> $DIR/liveness-unused.rs:2:9
24 |
25 LL | #![deny(unused_variables)]
26 | ^^^^^^^^^^^^^^^^
27
28 error: unused variable: `x`
29 --> $DIR/liveness-unused.rs:12:8
30 |
31 LL | fn f1b(x: &mut isize) {
32 | ^ help: if this is intentional, prefix it with an underscore: `_x`
33
34 error: unused variable: `x`
35 --> $DIR/liveness-unused.rs:20:9
36 |
37 LL | let x: isize;
38 | ^ help: if this is intentional, prefix it with an underscore: `_x`
39
40 error: unused variable: `x`
41 --> $DIR/liveness-unused.rs:25:9
42 |
43 LL | let x = 3;
44 | ^ help: if this is intentional, prefix it with an underscore: `_x`
45
46 error: variable `x` is assigned to, but never used
47 --> $DIR/liveness-unused.rs:30:13
48 |
49 LL | let mut x = 3;
50 | ^
51 |
52 = note: consider using `_x` instead
53
54 error: value assigned to `x` is never read
55 --> $DIR/liveness-unused.rs:32:5
56 |
57 LL | x += 4;
58 | ^
59 |
60 note: the lint level is defined here
61 --> $DIR/liveness-unused.rs:3:9
62 |
63 LL | #![deny(unused_assignments)]
64 | ^^^^^^^^^^^^^^^^^^
65 = help: maybe it is overwritten before being read?
66
67 error: variable `z` is assigned to, but never used
68 --> $DIR/liveness-unused.rs:37:13
69 |
70 LL | let mut z = 3;
71 | ^
72 |
73 = note: consider using `_z` instead
74
75 error: unused variable: `i`
76 --> $DIR/liveness-unused.rs:59:12
77 |
78 LL | Some(i) => {
79 | ^ help: if this is intentional, prefix it with an underscore: `_i`
80
81 error: unused variable: `x`
82 --> $DIR/liveness-unused.rs:79:9
83 |
84 LL | for x in 1..10 { }
85 | ^ help: if this is intentional, prefix it with an underscore: `_x`
86
87 error: unused variable: `x`
88 --> $DIR/liveness-unused.rs:84:10
89 |
90 LL | for (x, _) in [1, 2, 3].iter().enumerate() { }
91 | ^ help: if this is intentional, prefix it with an underscore: `_x`
92
93 error: unused variable: `x`
94 --> $DIR/liveness-unused.rs:89:13
95 |
96 LL | for (_, x) in [1, 2, 3].iter().enumerate() {
97 | ^ help: if this is intentional, prefix it with an underscore: `_x`
98
99 error: variable `x` is assigned to, but never used
100 --> $DIR/liveness-unused.rs:112:9
101 |
102 LL | let x;
103 | ^
104 |
105 = note: consider using `_x` instead
106
107 error: value assigned to `x` is never read
108 --> $DIR/liveness-unused.rs:116:9
109 |
110 LL | x = 0;
111 | ^
112 |
113 = help: maybe it is overwritten before being read?
114
115 error: aborting due to 13 previous errors; 1 warning emitted
116