Update UI tests

This commit is contained in:
Vadim Petrochenkov 2018-02-23 03:42:32 +03:00
parent cdbd8c2f2a
commit fa2d9fc4b9
1200 changed files with 6168 additions and 6168 deletions

View file

@ -1,10 +1,10 @@
error[E0621]: explicit lifetime required in the type of `x`
--> $DIR/42701_one_named_and_one_anonymous.rs:20:9
|
15 | fn foo2<'a>(a: &'a Foo, x: &i32) -> &'a i32 {
LL | fn foo2<'a>(a: &'a Foo, x: &i32) -> &'a i32 {
| - consider changing the type of `x` to `&'a i32`
...
20 | &*x //~ ERROR explicit lifetime
LL | &*x //~ ERROR explicit lifetime
| ^^^ lifetime `'a` required
error: aborting due to previous error

View file

@ -1,10 +1,10 @@
error[E0621]: explicit lifetime required in the type of `other`
--> $DIR/ex1-return-one-existing-name-early-bound-in-struct.rs:21:21
|
17 | fn bar(&self, other: Foo) -> Foo<'a> {
LL | fn bar(&self, other: Foo) -> Foo<'a> {
| ----- consider changing the type of `other` to `Foo<'a>`
...
21 | other //~ ERROR explicit lifetime
LL | other //~ ERROR explicit lifetime
| ^^^^^ lifetime `'a` required
error: aborting due to previous error

View file

@ -1,9 +1,9 @@
error[E0621]: explicit lifetime required in the type of `x`
--> $DIR/ex1-return-one-existing-name-if-else-2.rs:12:16
|
11 | fn foo<'a>(x: &i32, y: &'a i32) -> &'a i32 {
LL | fn foo<'a>(x: &i32, y: &'a i32) -> &'a i32 {
| - consider changing the type of `x` to `&'a i32`
12 | if x > y { x } else { y } //~ ERROR explicit lifetime
LL | if x > y { x } else { y } //~ ERROR explicit lifetime
| ^ lifetime `'a` required
error: aborting due to previous error

View file

@ -1,9 +1,9 @@
error[E0621]: explicit lifetime required in parameter type
--> $DIR/ex1-return-one-existing-name-if-else-3.rs:12:27
|
11 | fn foo<'a>((x, y): (&'a i32, &i32)) -> &'a i32 {
LL | fn foo<'a>((x, y): (&'a i32, &i32)) -> &'a i32 {
| ------ consider changing type to `(&'a i32, &'a i32)`
12 | if x > y { x } else { y } //~ ERROR explicit lifetime
LL | if x > y { x } else { y } //~ ERROR explicit lifetime
| ^ lifetime `'a` required
error: aborting due to previous error

View file

@ -1,9 +1,9 @@
error[E0621]: explicit lifetime required in the type of `x`
--> $DIR/ex1-return-one-existing-name-if-else-using-impl-2.rs:14:15
|
13 | fn foo<'a>(x: &i32, y: &'a i32) -> &'a i32 {
LL | fn foo<'a>(x: &i32, y: &'a i32) -> &'a i32 {
| - consider changing the type of `x` to `&'a i32`
14 | if x > y { x } else { y } //~ ERROR explicit lifetime
LL | if x > y { x } else { y } //~ ERROR explicit lifetime
| ^ lifetime `'a` required
error: aborting due to previous error

View file

@ -1,10 +1,10 @@
error[E0621]: explicit lifetime required in the type of `x`
--> $DIR/ex1-return-one-existing-name-if-else-using-impl-3.rs:18:36
|
16 | fn foo<'a>(&'a self, x: &i32) -> &i32 {
LL | fn foo<'a>(&'a self, x: &i32) -> &i32 {
| - consider changing the type of `x` to `&'a i32`
17 |
18 | if true { &self.field } else { x } //~ ERROR explicit lifetime
LL | if true { &self.field } else { x } //~ ERROR explicit lifetime
| ^ lifetime `'a` required
error: aborting due to previous error

View file

@ -1,12 +1,12 @@
error[E0623]: lifetime mismatch
--> $DIR/ex1-return-one-existing-name-if-else-using-impl.rs:21:20
|
19 | fn foo<'a>(x: &i32, y: &'a i32) -> &'a i32 {
LL | fn foo<'a>(x: &i32, y: &'a i32) -> &'a i32 {
| ---- -------
| |
| this parameter and the return type are declared with different lifetimes...
20 |
21 | if x > y { x } else { y } //~ ERROR lifetime mismatch
LL | if x > y { x } else { y } //~ ERROR lifetime mismatch
| ^ ...but data from `x` is returned here
error: aborting due to previous error

View file

@ -1,9 +1,9 @@
error[E0621]: explicit lifetime required in the type of `y`
--> $DIR/ex1-return-one-existing-name-if-else.rs:12:27
|
11 | fn foo<'a>(x: &'a i32, y: &i32) -> &'a i32 {
LL | fn foo<'a>(x: &'a i32, y: &i32) -> &'a i32 {
| - consider changing the type of `y` to `&'a i32`
12 | if x > y { x } else { y } //~ ERROR explicit lifetime
LL | if x > y { x } else { y } //~ ERROR explicit lifetime
| ^ lifetime `'a` required
error: aborting due to previous error

View file

@ -1,12 +1,12 @@
error[E0623]: lifetime mismatch
--> $DIR/ex1-return-one-existing-name-return-type-is-anon.rs:18:5
|
16 | fn foo<'a>(&self, x: &'a i32) -> &i32 {
LL | fn foo<'a>(&self, x: &'a i32) -> &i32 {
| ------- ----
| |
| this parameter and the return type are declared with different lifetimes...
17 |
18 | x //~ ERROR lifetime mismatch
LL | x //~ ERROR lifetime mismatch
| ^ ...but data from `x` is returned here
error: aborting due to previous error

View file

@ -1,12 +1,12 @@
error[E0623]: lifetime mismatch
--> $DIR/ex1-return-one-existing-name-self-is-anon.rs:18:30
|
16 | fn foo<'a>(&self, x: &'a Foo) -> &'a Foo {
LL | fn foo<'a>(&self, x: &'a Foo) -> &'a Foo {
| ----- -------
| |
| this parameter and the return type are declared with different lifetimes...
17 |
18 | if true { x } else { self } //~ ERROR lifetime mismatch
LL | if true { x } else { self } //~ ERROR lifetime mismatch
| ^^^^ ...but data from `self` is returned here
error: aborting due to previous error

View file

@ -1,7 +1,7 @@
error[E0106]: missing lifetime specifier
--> $DIR/ex1b-return-no-names-if-else.rs:11:29
|
11 | fn foo(x: &i32, y: &i32) -> &i32 { //~ ERROR missing lifetime
LL | fn foo(x: &i32, y: &i32) -> &i32 { //~ ERROR missing lifetime
| ^ expected lifetime parameter
|
= help: this function's return type contains a borrowed value, but the signature does not say whether it is borrowed from `x` or `y`

View file

@ -1,9 +1,9 @@
error[E0621]: explicit lifetime required in the type of `x`
--> $DIR/ex2a-push-one-existing-name-2.rs:16:12
|
15 | fn foo<'a>(x: Ref<i32>, y: &mut Vec<Ref<'a, i32>>) {
LL | fn foo<'a>(x: Ref<i32>, y: &mut Vec<Ref<'a, i32>>) {
| - consider changing the type of `x` to `Ref<'a, i32>`
16 | y.push(x); //~ ERROR explicit lifetime
LL | y.push(x); //~ ERROR explicit lifetime
| ^ lifetime `'a` required
error: aborting due to previous error

View file

@ -1,10 +1,10 @@
error[E0621]: explicit lifetime required in the type of `y`
--> $DIR/ex2a-push-one-existing-name-early-bound.rs:17:12
|
13 | fn baz<'a, 'b, T>(x: &mut Vec<&'a T>, y: &T)
LL | fn baz<'a, 'b, T>(x: &mut Vec<&'a T>, y: &T)
| - consider changing the type of `y` to `&'a T`
...
17 | x.push(y); //~ ERROR explicit lifetime required
LL | x.push(y); //~ ERROR explicit lifetime required
| ^ lifetime `'a` required
error: aborting due to previous error

View file

@ -1,9 +1,9 @@
error[E0621]: explicit lifetime required in the type of `y`
--> $DIR/ex2a-push-one-existing-name.rs:16:12
|
15 | fn foo<'a>(x: &mut Vec<Ref<'a, i32>>, y: Ref<i32>) {
LL | fn foo<'a>(x: &mut Vec<Ref<'a, i32>>, y: Ref<i32>) {
| - consider changing the type of `y` to `Ref<'a, i32>`
16 | x.push(y); //~ ERROR explicit lifetime
LL | x.push(y); //~ ERROR explicit lifetime
| ^ lifetime `'a` required
error: aborting due to previous error

View file

@ -1,9 +1,9 @@
error[E0623]: lifetime mismatch
--> $DIR/ex2b-push-no-existing-names.rs:16:12
|
15 | fn foo(x: &mut Vec<Ref<i32>>, y: Ref<i32>) {
LL | fn foo(x: &mut Vec<Ref<i32>>, y: Ref<i32>) {
| -------- -------- these two types are declared with different lifetimes...
16 | x.push(y); //~ ERROR lifetime mismatch
LL | x.push(y); //~ ERROR lifetime mismatch
| ^ ...but data from `y` flows into `x` here
error: aborting due to previous error

View file

@ -1,10 +1,10 @@
error[E0623]: lifetime mismatch
--> $DIR/ex2c-push-inference-variable.rs:17:12
|
15 | fn foo<'a, 'b, 'c>(x: &'a mut Vec<Ref<'b, i32>>, y: Ref<'c, i32>) {
LL | fn foo<'a, 'b, 'c>(x: &'a mut Vec<Ref<'b, i32>>, y: Ref<'c, i32>) {
| ------------ ------------ these two types are declared with different lifetimes...
16 | let z = Ref { data: y.data };
17 | x.push(z); //~ ERROR lifetime mismatch
LL | x.push(z); //~ ERROR lifetime mismatch
| ^ ...but data from `y` flows into `x` here
error: aborting due to previous error

View file

@ -1,9 +1,9 @@
error[E0623]: lifetime mismatch
--> $DIR/ex2d-push-inference-variable-2.rs:16:33
|
15 | fn foo<'a, 'b, 'c>(x: &'a mut Vec<Ref<'b, i32>>, y: Ref<'c, i32>) {
LL | fn foo<'a, 'b, 'c>(x: &'a mut Vec<Ref<'b, i32>>, y: Ref<'c, i32>) {
| ------------ ------------ these two types are declared with different lifetimes...
16 | let a: &mut Vec<Ref<i32>> = x; //~ ERROR lifetime mismatch
LL | let a: &mut Vec<Ref<i32>> = x; //~ ERROR lifetime mismatch
| ^ ...but data from `y` flows into `x` here
error: aborting due to previous error

View file

@ -1,9 +1,9 @@
error[E0623]: lifetime mismatch
--> $DIR/ex2e-push-inference-variable-3.rs:16:33
|
15 | fn foo<'a, 'b, 'c>(x: &'a mut Vec<Ref<'b, i32>>, y: Ref<'c, i32>) {
LL | fn foo<'a, 'b, 'c>(x: &'a mut Vec<Ref<'b, i32>>, y: Ref<'c, i32>) {
| ------------ ------------ these two types are declared with different lifetimes...
16 | let a: &mut Vec<Ref<i32>> = x; //~ ERROR lifetime mismatch
LL | let a: &mut Vec<Ref<i32>> = x; //~ ERROR lifetime mismatch
| ^ ...but data from `y` flows into `x` here
error: aborting due to previous error

View file

@ -1,9 +1,9 @@
error[E0623]: lifetime mismatch
--> $DIR/ex3-both-anon-regions-2.rs:12:9
|
11 | fn foo((v, w): (&u8, &u8), x: &u8) {
LL | fn foo((v, w): (&u8, &u8), x: &u8) {
| --- --- these two types are declared with different lifetimes...
12 | v = x; //~ ERROR lifetime mismatch
LL | v = x; //~ ERROR lifetime mismatch
| ^ ...but data from `x` flows here
error: aborting due to previous error

View file

@ -1,17 +1,17 @@
error[E0623]: lifetime mismatch
--> $DIR/ex3-both-anon-regions-3.rs:12:13
|
11 | fn foo(z: &mut Vec<(&u8,&u8)>, (x, y): (&u8, &u8)) {
LL | fn foo(z: &mut Vec<(&u8,&u8)>, (x, y): (&u8, &u8)) {
| --- --- these two types are declared with different lifetimes...
12 | z.push((x,y)); //~ ERROR lifetime mismatch
LL | z.push((x,y)); //~ ERROR lifetime mismatch
| ^ ...but data flows into `z` here
error[E0623]: lifetime mismatch
--> $DIR/ex3-both-anon-regions-3.rs:12:15
|
11 | fn foo(z: &mut Vec<(&u8,&u8)>, (x, y): (&u8, &u8)) {
LL | fn foo(z: &mut Vec<(&u8,&u8)>, (x, y): (&u8, &u8)) {
| --- --- these two types are declared with different lifetimes...
12 | z.push((x,y)); //~ ERROR lifetime mismatch
LL | z.push((x,y)); //~ ERROR lifetime mismatch
| ^ ...but data flows into `z` here
error: aborting due to 2 previous errors

View file

@ -1,9 +1,9 @@
error[E0623]: lifetime mismatch
--> $DIR/ex3-both-anon-regions-both-are-structs-2.rs:16:11
|
15 | fn foo(mut x: Ref, y: Ref) {
LL | fn foo(mut x: Ref, y: Ref) {
| --- --- these two types are declared with different lifetimes...
16 | x.b = y.b; //~ ERROR lifetime mismatch
LL | x.b = y.b; //~ ERROR lifetime mismatch
| ^^^ ...but data from `y` flows into `x` here
error: aborting due to previous error

View file

@ -1,11 +1,11 @@
error[E0623]: lifetime mismatch
--> $DIR/ex3-both-anon-regions-both-are-structs-3.rs:16:11
|
15 | fn foo(mut x: Ref) {
LL | fn foo(mut x: Ref) {
| ---
| |
| this type is declared with multiple lifetimes...
16 | x.a = x.b; //~ ERROR lifetime mismatch
LL | x.a = x.b; //~ ERROR lifetime mismatch
| ^^^ ...but data with one lifetime flows into the other here
error: aborting due to previous error

View file

@ -1,11 +1,11 @@
error[E0623]: lifetime mismatch
--> $DIR/ex3-both-anon-regions-both-are-structs-4.rs:16:11
|
15 | fn foo(mut x: Ref) {
LL | fn foo(mut x: Ref) {
| ---
| |
| this type is declared with multiple lifetimes...
16 | x.a = x.b; //~ ERROR lifetime mismatch
LL | x.a = x.b; //~ ERROR lifetime mismatch
| ^^^ ...but data with one lifetime flows into the other here
error: aborting due to previous error

View file

@ -1,10 +1,10 @@
error[E0623]: lifetime mismatch
--> $DIR/ex3-both-anon-regions-both-are-structs-earlybound-regions.rs:18:12
|
14 | fn foo<'a, 'b>(mut x: Vec<Ref<'a>>, y: Ref<'b>)
LL | fn foo<'a, 'b>(mut x: Vec<Ref<'a>>, y: Ref<'b>)
| ------- ------- these two types are declared with different lifetimes...
...
18 | x.push(y); //~ ERROR lifetime mismatch
LL | x.push(y); //~ ERROR lifetime mismatch
| ^ ...but data from `y` flows into `x` here
error: aborting due to previous error

View file

@ -1,9 +1,9 @@
error[E0623]: lifetime mismatch
--> $DIR/ex3-both-anon-regions-both-are-structs-latebound-regions.rs:15:12
|
14 | fn foo<'a, 'b>(mut x: Vec<Ref<'a>>, y: Ref<'b>) {
LL | fn foo<'a, 'b>(mut x: Vec<Ref<'a>>, y: Ref<'b>) {
| ------- ------- these two types are declared with different lifetimes...
15 | x.push(y); //~ ERROR lifetime mismatch
LL | x.push(y); //~ ERROR lifetime mismatch
| ^ ...but data from `y` flows into `x` here
error: aborting due to previous error

View file

@ -1,9 +1,9 @@
error[E0623]: lifetime mismatch
--> $DIR/ex3-both-anon-regions-both-are-structs.rs:15:12
|
14 | fn foo(mut x: Vec<Ref>, y: Ref) {
LL | fn foo(mut x: Vec<Ref>, y: Ref) {
| --- --- these two types are declared with different lifetimes...
15 | x.push(y); //~ ERROR lifetime mismatch
LL | x.push(y); //~ ERROR lifetime mismatch
| ^ ...but data from `y` flows into `x` here
error: aborting due to previous error

View file

@ -1,9 +1,9 @@
error[E0623]: lifetime mismatch
--> $DIR/ex3-both-anon-regions-latebound-regions.rs:12:12
|
11 | fn foo<'a,'b>(x: &mut Vec<&'a u8>, y: &'b u8) {
LL | fn foo<'a,'b>(x: &mut Vec<&'a u8>, y: &'b u8) {
| ------ ------ these two types are declared with different lifetimes...
12 | x.push(y); //~ ERROR lifetime mismatch
LL | x.push(y); //~ ERROR lifetime mismatch
| ^ ...but data from `y` flows into `x` here
error: aborting due to previous error

View file

@ -1,11 +1,11 @@
error[E0623]: lifetime mismatch
--> $DIR/ex3-both-anon-regions-one-is-struct-2.rs:14:9
|
13 | fn foo(mut x: Ref, y: &u32) {
LL | fn foo(mut x: Ref, y: &u32) {
| --- ----
| |
| these two types are declared with different lifetimes...
14 | y = x.b; //~ ERROR lifetime mismatch
LL | y = x.b; //~ ERROR lifetime mismatch
| ^^^ ...but data from `x` flows into `y` here
error: aborting due to previous error

View file

@ -1,9 +1,9 @@
error[E0623]: lifetime mismatch
--> $DIR/ex3-both-anon-regions-one-is-struct-3.rs:14:11
|
13 | fn foo(mut y: Ref, x: &u32) {
LL | fn foo(mut y: Ref, x: &u32) {
| --- ---- these two types are declared with different lifetimes...
14 | y.b = x; //~ ERROR lifetime mismatch
LL | y.b = x; //~ ERROR lifetime mismatch
| ^ ...but data from `x` flows into `y` here
error: aborting due to previous error

View file

@ -1,9 +1,9 @@
error[E0623]: lifetime mismatch
--> $DIR/ex3-both-anon-regions-one-is-struct-4.rs:14:11
|
13 | fn foo(mut y: Ref, x: &u32) {
LL | fn foo(mut y: Ref, x: &u32) {
| --- ---- these two types are declared with different lifetimes...
14 | y.b = x; //~ ERROR lifetime mismatch
LL | y.b = x; //~ ERROR lifetime mismatch
| ^ ...but data from `x` flows into `y` here
error: aborting due to previous error

View file

@ -1,9 +1,9 @@
error[E0623]: lifetime mismatch
--> $DIR/ex3-both-anon-regions-one-is-struct.rs:17:11
|
16 | fn foo(mut x: Ref, y: &u32) {
LL | fn foo(mut x: Ref, y: &u32) {
| --- ---- these two types are declared with different lifetimes...
17 | x.b = y; //~ ERROR lifetime mismatch
LL | x.b = y; //~ ERROR lifetime mismatch
| ^ ...but data from `y` flows into `x` here
error: aborting due to previous error

View file

@ -1,11 +1,11 @@
error[E0623]: lifetime mismatch
--> $DIR/ex3-both-anon-regions-return-type-is-anon.rs:17:5
|
16 | fn foo<'a>(&self, x: &i32) -> &i32 {
LL | fn foo<'a>(&self, x: &i32) -> &i32 {
| ---- ----
| |
| this parameter and the return type are declared with different lifetimes...
17 | x //~ ERROR lifetime mismatch
LL | x //~ ERROR lifetime mismatch
| ^ ...but data from `x` is returned here
error: aborting due to previous error

View file

@ -1,11 +1,11 @@
error[E0623]: lifetime mismatch
--> $DIR/ex3-both-anon-regions-self-is-anon.rs:17:19
|
16 | fn foo<'a>(&self, x: &Foo) -> &Foo {
LL | fn foo<'a>(&self, x: &Foo) -> &Foo {
| ---- ----
| |
| this parameter and the return type are declared with different lifetimes...
17 | if true { x } else { self } //~ ERROR lifetime mismatch
LL | if true { x } else { self } //~ ERROR lifetime mismatch
| ^ ...but data from `x` is returned here
error: aborting due to previous error

View file

@ -1,9 +1,9 @@
error[E0623]: lifetime mismatch
--> $DIR/ex3-both-anon-regions-using-fn-items.rs:11:10
|
10 | fn foo(x:fn(&u8, &u8), y: Vec<&u8>, z: &u8) {
LL | fn foo(x:fn(&u8, &u8), y: Vec<&u8>, z: &u8) {
| --- --- these two types are declared with different lifetimes...
11 | y.push(z); //~ ERROR lifetime mismatch
LL | y.push(z); //~ ERROR lifetime mismatch
| ^ ...but data from `z` flows into `y` here
error: aborting due to previous error

View file

@ -1,9 +1,9 @@
error[E0623]: lifetime mismatch
--> $DIR/ex3-both-anon-regions-using-impl-items.rs:15:16
|
14 | fn foo(x: &mut Vec<&u8>, y: &u8) {
LL | fn foo(x: &mut Vec<&u8>, y: &u8) {
| --- --- these two types are declared with different lifetimes...
15 | x.push(y); //~ ERROR lifetime mismatch
LL | x.push(y); //~ ERROR lifetime mismatch
| ^ ...but data from `y` flows into `x` here
error: aborting due to previous error

View file

@ -1,9 +1,9 @@
error[E0623]: lifetime mismatch
--> $DIR/ex3-both-anon-regions-using-trait-objects.rs:11:10
|
10 | fn foo(x:Box<Fn(&u8, &u8)> , y: Vec<&u8>, z: &u8) {
LL | fn foo(x:Box<Fn(&u8, &u8)> , y: Vec<&u8>, z: &u8) {
| --- --- these two types are declared with different lifetimes...
11 | y.push(z); //~ ERROR lifetime mismatch
LL | y.push(z); //~ ERROR lifetime mismatch
| ^ ...but data from `z` flows into `y` here
error: aborting due to previous error

View file

@ -1,9 +1,9 @@
error[E0623]: lifetime mismatch
--> $DIR/ex3-both-anon-regions.rs:12:12
|
11 | fn foo(x: &mut Vec<&u8>, y: &u8) {
LL | fn foo(x: &mut Vec<&u8>, y: &u8) {
| --- --- these two types are declared with different lifetimes...
12 | x.push(y); //~ ERROR lifetime mismatch
LL | x.push(y); //~ ERROR lifetime mismatch
| ^ ...but data from `y` flows into `x` here
error: aborting due to previous error

View file

@ -1,63 +1,63 @@
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