]>
Commit | Line | Data |
---|---|---|
b7449926 XL |
1 | warning: unreachable statement |
2 | --> $DIR/liveness-unused.rs:102:9 | |
3 | | | |
4 | LL | drop(*x as i32); //~ WARNING unreachable statement | |
5 | | ^^^^^^^^^^^^^^^^ | |
6 | | | |
7 | note: lint level defined here | |
8 | --> $DIR/liveness-unused.rs:11:9 | |
9 | | | |
10 | LL | #![warn(unused)] | |
11 | | ^^^^^^ | |
12 | = note: #[warn(unreachable_code)] implied by #[warn(unused)] | |
13 | ||
14 | error: unused variable: `x` | |
15 | --> $DIR/liveness-unused.rs:18:7 | |
16 | | | |
17 | LL | fn f1(x: isize) { | |
18 | | ^ help: consider using `_x` instead | |
19 | | | |
20 | note: lint level defined here | |
21 | --> $DIR/liveness-unused.rs:12:9 | |
22 | | | |
23 | LL | #![deny(unused_variables)] | |
24 | | ^^^^^^^^^^^^^^^^ | |
25 | ||
26 | error: unused variable: `x` | |
27 | --> $DIR/liveness-unused.rs:22:8 | |
28 | | | |
29 | LL | fn f1b(x: &mut isize) { | |
30 | | ^ help: consider using `_x` instead | |
31 | ||
32 | error: unused variable: `x` | |
33 | --> $DIR/liveness-unused.rs:30:9 | |
34 | | | |
35 | LL | let x: isize; | |
36 | | ^ help: consider using `_x` instead | |
37 | ||
38 | error: unused variable: `x` | |
39 | --> $DIR/liveness-unused.rs:35:9 | |
40 | | | |
41 | LL | let x = 3; | |
42 | | ^ help: consider using `_x` instead | |
43 | ||
44 | error: variable `x` is assigned to, but never used | |
45 | --> $DIR/liveness-unused.rs:40:13 | |
46 | | | |
47 | LL | let mut x = 3; | |
48 | | ^ | |
49 | | | |
50 | = note: consider using `_x` instead | |
51 | ||
52 | error: value assigned to `x` is never read | |
53 | --> $DIR/liveness-unused.rs:42:5 | |
54 | | | |
55 | LL | x += 4; | |
56 | | ^ | |
57 | | | |
58 | note: lint level defined here | |
59 | --> $DIR/liveness-unused.rs:13:9 | |
60 | | | |
61 | LL | #![deny(unused_assignments)] | |
62 | | ^^^^^^^^^^^^^^^^^^ | |
63 | ||
64 | error: variable `z` is assigned to, but never used | |
65 | --> $DIR/liveness-unused.rs:47:13 | |
66 | | | |
67 | LL | let mut z = 3; | |
68 | | ^ | |
69 | | | |
70 | = note: consider using `_z` instead | |
71 | ||
72 | error: unused variable: `i` | |
73 | --> $DIR/liveness-unused.rs:69:12 | |
74 | | | |
75 | LL | Some(i) => { | |
76 | | ^ help: consider using `_i` instead | |
77 | ||
78 | error: unused variable: `x` | |
79 | --> $DIR/liveness-unused.rs:89:9 | |
80 | | | |
81 | LL | for x in 1..10 { } | |
82 | | ^ help: consider using `_x` instead | |
83 | ||
84 | error: unused variable: `x` | |
85 | --> $DIR/liveness-unused.rs:94:10 | |
86 | | | |
87 | LL | for (x, _) in [1, 2, 3].iter().enumerate() { } | |
88 | | ^ help: consider using `_x` instead | |
89 | ||
90 | error: unused variable: `x` | |
91 | --> $DIR/liveness-unused.rs:99:13 | |
92 | | | |
93 | LL | for (_, x) in [1, 2, 3].iter().enumerate() { | |
94 | | ^ help: consider using `_x` instead | |
95 | ||
96 | error: variable `x` is assigned to, but never used | |
97 | --> $DIR/liveness-unused.rs:122:9 | |
98 | | | |
99 | LL | let x; | |
100 | | ^ | |
101 | | | |
102 | = note: consider using `_x` instead | |
103 | ||
104 | error: value assigned to `x` is never read | |
105 | --> $DIR/liveness-unused.rs:126:9 | |
106 | | | |
107 | LL | x = 0; //~ ERROR value assigned to `x` is never read | |
108 | | ^ | |
109 | ||
110 | error: aborting due to 13 previous errors | |
111 |