1 warning: unreachable statement
2 --> $DIR/liveness-unused.rs:92:9
5 | -------- any code following this expression is unreachable
7 | ^^^^^^^^^^^^^^^^ unreachable statement
9 note: the lint level is defined here
10 --> $DIR/liveness-unused.rs:1:9
14 = note: `#[warn(unreachable_code)]` implied by `#[warn(unused)]`
16 error: unused variable: `x`
17 --> $DIR/liveness-unused.rs:8:7
19 LL | fn f1(x: isize) {
20 | ^ help: if this is intentional, prefix it with an underscore: `_x`
22 note: the lint level is defined here
23 --> $DIR/liveness-unused.rs:2:9
25 LL | #![deny(unused_variables)]
28 error: unused variable: `x`
29 --> $DIR/liveness-unused.rs:12:8
31 LL | fn f1b(x: &mut isize) {
32 | ^ help: if this is intentional, prefix it with an underscore: `_x`
34 error: unused variable: `x`
35 --> $DIR/liveness-unused.rs:20:9
38 | ^ help: if this is intentional, prefix it with an underscore: `_x`
40 error: unused variable: `x`
41 --> $DIR/liveness-unused.rs:25:9
44 | ^ help: if this is intentional, prefix it with an underscore: `_x`
46 error: variable `x` is assigned to, but never used
47 --> $DIR/liveness-unused.rs:30:13
52 = note: consider using `_x` instead
54 error: value assigned to `x` is never read
55 --> $DIR/liveness-unused.rs:32:5
60 note: the lint level is defined here
61 --> $DIR/liveness-unused.rs:3:9
63 LL | #![deny(unused_assignments)]
65 = help: maybe it is overwritten before being read?
67 error: variable `z` is assigned to, but never used
68 --> $DIR/liveness-unused.rs:37:13
73 = note: consider using `_z` instead
75 error: unused variable: `i`
76 --> $DIR/liveness-unused.rs:59:12
79 | ^ help: if this is intentional, prefix it with an underscore: `_i`
81 error: unused variable: `x`
82 --> $DIR/liveness-unused.rs:79:9
84 LL | for x in 1..10 { }
85 | ^ help: if this is intentional, prefix it with an underscore: `_x`
87 error: unused variable: `x`
88 --> $DIR/liveness-unused.rs:84:10
90 LL | for (x, _) in [1, 2, 3].iter().enumerate() { }
91 | ^ help: if this is intentional, prefix it with an underscore: `_x`
93 error: unused variable: `x`
94 --> $DIR/liveness-unused.rs:89:13
96 LL | for (_, x) in [1, 2, 3].iter().enumerate() {
97 | ^ help: if this is intentional, prefix it with an underscore: `_x`
99 error: variable `x` is assigned to, but never used
100 --> $DIR/liveness-unused.rs:112:9
105 = note: consider using `_x` instead
107 error: value assigned to `x` is never read
108 --> $DIR/liveness-unused.rs:116:9
113 = help: maybe it is overwritten before being read?
115 error: aborting due to 13 previous errors; 1 warning emitted