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