Updated tests with fixed span location.
This commit is contained in:
parent
6272b60dca
commit
6d00c9686b
@ -15,7 +15,7 @@ error[E0597]: `z` does not live long enough (Mir)
|
||||
16 | &mut z
|
||||
| ^^^^^^ borrowed value does not live long enough
|
||||
17 | };
|
||||
| - `z` dropped here while still borrowed
|
||||
| - `z` dropped here while still borrowed
|
||||
...
|
||||
21 | }
|
||||
| - borrowed value needs to live until here
|
||||
|
@ -16,7 +16,7 @@ error[E0597]: `x` does not live long enough (Mir)
|
||||
| ^^ borrowed value does not live long enough
|
||||
...
|
||||
18 | }
|
||||
| - borrowed value only lives until here
|
||||
| - borrowed value only lives until here
|
||||
|
|
||||
= note: borrowed value must be valid for the static lifetime...
|
||||
|
||||
|
@ -24,7 +24,7 @@ error[E0597]: borrowed value does not live long enough (Mir)
|
||||
| ^ temporary value does not live long enough
|
||||
...
|
||||
17 | }
|
||||
| - temporary value only lives until here
|
||||
| - temporary value only lives until here
|
||||
|
|
||||
note: borrowed value must be valid for the lifetime 'a as defined on the function body at 13:1...
|
||||
--> $DIR/issue-46472.rs:13:1
|
||||
|
@ -5,7 +5,7 @@ error[E0597]: `y` does not live long enough
|
||||
| ^^ borrowed value does not live long enough
|
||||
...
|
||||
38 | }
|
||||
| - borrowed value only lives until here
|
||||
| - borrowed value only lives until here
|
||||
39 |
|
||||
40 | deref(p);
|
||||
| - borrow later used here
|
||||
|
@ -30,7 +30,7 @@ error[E0597]: `y` does not live long enough
|
||||
| ^^ borrowed value does not live long enough
|
||||
38 | //~^ ERROR `y` does not live long enough [E0597]
|
||||
39 | }
|
||||
| - borrowed value only lives until here
|
||||
| - borrowed value only lives until here
|
||||
40 |
|
||||
41 | deref(p);
|
||||
| - borrow later used here
|
||||
|
@ -57,7 +57,7 @@ error[E0597]: `y` does not live long enough
|
||||
| |_________^ borrowed value does not live long enough
|
||||
...
|
||||
36 | }
|
||||
| - borrowed value only lives until here
|
||||
| - borrowed value only lives until here
|
||||
37 |
|
||||
38 | deref(p);
|
||||
| - borrow later used here
|
||||
|
@ -34,7 +34,7 @@ error[E0597]: `y` does not live long enough
|
||||
| ^^^^^^^^^ borrowed value does not live long enough
|
||||
...
|
||||
36 | }
|
||||
| - borrowed value only lives until here
|
||||
| - borrowed value only lives until here
|
||||
37 |
|
||||
38 | deref(p);
|
||||
| - borrow later used here
|
||||
|
@ -8,7 +8,7 @@ error[E0506]: cannot assign to `v[..]` because it is borrowed
|
||||
| ^^^^^^^^^ assignment to borrowed `v[..]` occurs here
|
||||
...
|
||||
35 | }
|
||||
| - borrow later used here, when `p` is dropped
|
||||
| - borrow later used here, when `p` is dropped
|
||||
|
||||
error[E0506]: cannot assign to `v[..]` because it is borrowed
|
||||
--> $DIR/drop-no-may-dangle.rs:34:5
|
||||
@ -19,7 +19,7 @@ error[E0506]: cannot assign to `v[..]` because it is borrowed
|
||||
34 | v[0] += 1; //~ ERROR cannot assign to `v[..]` because it is borrowed
|
||||
| ^^^^^^^^^ assignment to borrowed `v[..]` occurs here
|
||||
35 | }
|
||||
| - borrow later used here, when `p` is dropped
|
||||
| - borrow later used here, when `p` is dropped
|
||||
|
||||
error: aborting due to 2 previous errors
|
||||
|
||||
|
@ -8,7 +8,7 @@ error[E0506]: cannot assign to `x` because it is borrowed
|
||||
| ^^^^^ assignment to borrowed `x` occurs here
|
||||
33 | // FIXME ^ Should not error in the future with implicit dtors, only manually implemented ones
|
||||
34 | }
|
||||
| - borrow later used here, when `foo` is dropped
|
||||
| - borrow later used here, when `foo` is dropped
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
@ -7,7 +7,7 @@ error[E0506]: cannot assign to `x` because it is borrowed
|
||||
31 | x = 1; //~ ERROR cannot assign to `x` because it is borrowed [E0506]
|
||||
| ^^^^^ assignment to borrowed `x` occurs here
|
||||
32 | }
|
||||
| - borrow later used here, when `foo` is dropped
|
||||
| - borrow later used here, when `foo` is dropped
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
@ -8,7 +8,7 @@ error[E0506]: cannot assign to `x` because it is borrowed
|
||||
| ^^^^^ assignment to borrowed `x` occurs here
|
||||
33 | // FIXME ^ This currently errors and it should not.
|
||||
34 | }
|
||||
| - borrow later used here, when `foo` is dropped
|
||||
| - borrow later used here, when `foo` is dropped
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
@ -6,7 +6,7 @@ error[E0506]: cannot assign to `x` because it is borrowed
|
||||
26 | x = 1; //~ ERROR cannot assign to `x` because it is borrowed [E0506]
|
||||
| ^^^^^ assignment to borrowed `x` occurs here
|
||||
27 | }
|
||||
| - borrow later used here, when `wrap` is dropped
|
||||
| - borrow later used here, when `wrap` is dropped
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user