|
| 1 | +error[E0384]: cannot assign twice to immutable variable `x` (Ast) |
| 2 | + --> $DIR/liveness-assign-imm-local-notes.rs:23:9 |
| 3 | + | |
| 4 | +22 | x = 2; |
| 5 | + | ----- first assignment to `x` |
| 6 | +23 | x = 3; //~ ERROR (Ast) [E0384] |
| 7 | + | ^^^^^ cannot assign twice to immutable variable |
| 8 | + |
| 9 | +error[E0384]: cannot assign twice to immutable variable `x` (Ast) |
| 10 | + --> $DIR/liveness-assign-imm-local-notes.rs:35:13 |
| 11 | + | |
| 12 | +34 | x = 2; |
| 13 | + | ----- first assignment to `x` |
| 14 | +35 | x = 3; //~ ERROR (Ast) [E0384] |
| 15 | + | ^^^^^ cannot assign twice to immutable variable |
| 16 | + |
| 17 | +error[E0384]: cannot assign twice to immutable variable `x` (Ast) |
| 18 | + --> $DIR/liveness-assign-imm-local-notes.rs:45:13 |
| 19 | + | |
| 20 | +45 | x = 1; //~ ERROR (Ast) [E0384] |
| 21 | + | ^^^^^ cannot assign twice to immutable variable |
| 22 | + |
| 23 | +error[E0384]: cannot assign twice to immutable variable `x` (Ast) |
| 24 | + --> $DIR/liveness-assign-imm-local-notes.rs:48:13 |
| 25 | + | |
| 26 | +45 | x = 1; //~ ERROR (Ast) [E0384] |
| 27 | + | ----- first assignment to `x` |
| 28 | +... |
| 29 | +48 | x = 2; //~ ERROR (Ast) [E0384] |
| 30 | + | ^^^^^ cannot assign twice to immutable variable |
| 31 | + |
| 32 | +error[E0384]: cannot assign twice to immutable variable `x` (Mir) |
| 33 | + --> $DIR/liveness-assign-imm-local-notes.rs:23:9 |
| 34 | + | |
| 35 | +22 | x = 2; |
| 36 | + | ----- first assignment to `x` |
| 37 | +23 | x = 3; //~ ERROR (Ast) [E0384] |
| 38 | + | ^^^^^ cannot assign twice to immutable variable |
| 39 | + |
| 40 | +error[E0384]: cannot assign twice to immutable variable `x` (Mir) |
| 41 | + --> $DIR/liveness-assign-imm-local-notes.rs:35:13 |
| 42 | + | |
| 43 | +34 | x = 2; |
| 44 | + | ----- first assignment to `x` |
| 45 | +35 | x = 3; //~ ERROR (Ast) [E0384] |
| 46 | + | ^^^^^ cannot assign twice to immutable variable |
| 47 | + |
| 48 | +error[E0384]: cannot assign twice to immutable variable `x` (Mir) |
| 49 | + --> $DIR/liveness-assign-imm-local-notes.rs:45:13 |
| 50 | + | |
| 51 | +45 | x = 1; //~ ERROR (Ast) [E0384] |
| 52 | + | ^^^^^ cannot assign twice to immutable variable |
| 53 | + |
| 54 | +error[E0384]: cannot assign twice to immutable variable `x` (Mir) |
| 55 | + --> $DIR/liveness-assign-imm-local-notes.rs:48:13 |
| 56 | + | |
| 57 | +45 | x = 1; //~ ERROR (Ast) [E0384] |
| 58 | + | ----- first assignment to `x` |
| 59 | +... |
| 60 | +48 | x = 2; //~ ERROR (Ast) [E0384] |
| 61 | + | ^^^^^ cannot assign twice to immutable variable |
| 62 | + |
| 63 | +error: aborting due to 8 previous errors |
| 64 | + |
0 commit comments