]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/lifetime-errors/liveness-assign-imm-local-notes.stderr
New upstream version 1.26.0+dfsg1
[rustc.git] / src / test / ui / lifetime-errors / liveness-assign-imm-local-notes.stderr
index b8f738e445e0652a401441b1b85f568baadc4e2a..43743118966596dde663f6af9dac9e9ae1a63ef5 100644 (file)
@@ -1,64 +1,65 @@
 error[E0384]: cannot assign twice to immutable variable `x` (Ast)
   --> $DIR/liveness-assign-imm-local-notes.rs:23:9
    |
-22 |         x = 2;
+LL |         x = 2;
    |         ----- first assignment to `x`
-23 |         x = 3;      //~ ERROR (Ast) [E0384]
+LL |         x = 3;      //~ ERROR (Ast) [E0384]
    |         ^^^^^ cannot assign twice to immutable variable
 
 error[E0384]: cannot assign twice to immutable variable `x` (Ast)
   --> $DIR/liveness-assign-imm-local-notes.rs:35:13
    |
-34 |             x = 2;
+LL |             x = 2;
    |             ----- first assignment to `x`
-35 |             x = 3;      //~ ERROR (Ast) [E0384]
+LL |             x = 3;      //~ ERROR (Ast) [E0384]
    |             ^^^^^ cannot assign twice to immutable variable
 
 error[E0384]: cannot assign twice to immutable variable `x` (Ast)
   --> $DIR/liveness-assign-imm-local-notes.rs:45:13
    |
-45 |             x = 1;      //~ ERROR (Ast) [E0384]
+LL |             x = 1;      //~ ERROR (Ast) [E0384]
    |             ^^^^^ cannot assign twice to immutable variable
 
 error[E0384]: cannot assign twice to immutable variable `x` (Ast)
   --> $DIR/liveness-assign-imm-local-notes.rs:48:13
    |
-45 |             x = 1;      //~ ERROR (Ast) [E0384]
+LL |             x = 1;      //~ ERROR (Ast) [E0384]
    |             ----- first assignment to `x`
 ...
-48 |             x = 2;      //~ ERROR (Ast) [E0384]
+LL |             x = 2;      //~ ERROR (Ast) [E0384]
    |             ^^^^^ cannot assign twice to immutable variable
 
 error[E0384]: cannot assign twice to immutable variable `x` (Mir)
   --> $DIR/liveness-assign-imm-local-notes.rs:23:9
    |
-22 |         x = 2;
+LL |         x = 2;
    |         ----- first assignment to `x`
-23 |         x = 3;      //~ ERROR (Ast) [E0384]
+LL |         x = 3;      //~ ERROR (Ast) [E0384]
    |         ^^^^^ cannot assign twice to immutable variable
 
 error[E0384]: cannot assign twice to immutable variable `x` (Mir)
   --> $DIR/liveness-assign-imm-local-notes.rs:35:13
    |
-34 |             x = 2;
+LL |             x = 2;
    |             ----- first assignment to `x`
-35 |             x = 3;      //~ ERROR (Ast) [E0384]
+LL |             x = 3;      //~ ERROR (Ast) [E0384]
    |             ^^^^^ cannot assign twice to immutable variable
 
 error[E0384]: cannot assign twice to immutable variable `x` (Mir)
   --> $DIR/liveness-assign-imm-local-notes.rs:45:13
    |
-45 |             x = 1;      //~ ERROR (Ast) [E0384]
+LL |             x = 1;      //~ ERROR (Ast) [E0384]
    |             ^^^^^ cannot assign twice to immutable variable
 
 error[E0384]: cannot assign twice to immutable variable `x` (Mir)
   --> $DIR/liveness-assign-imm-local-notes.rs:48:13
    |
-45 |             x = 1;      //~ ERROR (Ast) [E0384]
+LL |             x = 1;      //~ ERROR (Ast) [E0384]
    |             ----- first assignment to `x`
 ...
-48 |             x = 2;      //~ ERROR (Ast) [E0384]
+LL |             x = 2;      //~ ERROR (Ast) [E0384]
    |             ^^^^^ cannot assign twice to immutable variable
 
 error: aborting due to 8 previous errors
 
+For more information about this error, try `rustc --explain E0384`.