fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0384]: cannot assign twice to immutable variable `x` 2 --> $DIR/liveness-assign-imm-local-notes.rs:10:9 3 | 4LL | let x; 5 | - help: consider making this binding mutable: `mut x` 6... 7LL | x = 2; 8 | ----- first assignment to `x` 9LL | x = 3; 10 | ^^^^^ cannot assign twice to immutable variable 11 12error[E0384]: cannot assign twice to immutable variable `x` 13 --> $DIR/liveness-assign-imm-local-notes.rs:21:13 14 | 15LL | let x; 16 | - help: consider making this binding mutable: `mut x` 17... 18LL | x = 2; 19 | ----- first assignment to `x` 20LL | x = 3; 21 | ^^^^^ cannot assign twice to immutable variable 22 23error[E0384]: cannot assign twice to immutable variable `x` 24 --> $DIR/liveness-assign-imm-local-notes.rs:30:13 25 | 26LL | let x; 27 | - help: consider making this binding mutable: `mut x` 28... 29LL | x = 1; 30 | ^^^^^ cannot assign twice to immutable variable 31 32error[E0384]: cannot assign twice to immutable variable `x` 33 --> $DIR/liveness-assign-imm-local-notes.rs:32:13 34 | 35LL | let x; 36 | - help: consider making this binding mutable: `mut x` 37... 38LL | x = 1; 39 | ----- first assignment to `x` 40LL | } else { 41LL | x = 2; 42 | ^^^^^ cannot assign twice to immutable variable 43 44error: aborting due to 4 previous errors 45 46For more information about this error, try `rustc --explain E0384`.