Updated affected tests after rebase.

This commit is contained in:
David Wood 2018-06-30 00:10:00 +01:00
parent 15aad83560
commit c0c4741ef7
No known key found for this signature in database
GPG Key ID: 01760B4F9F53F154
6 changed files with 7 additions and 7 deletions

View File

@ -4,7 +4,7 @@ warning: not reporting region error due to nll
LL | give_any(|y| x = Some(y));
| ^
error: assignment requires that data must outlive free region `'_#2r`
error: free region `` does not outlive free region `'_#2r`
--> $DIR/issue-45983.rs:17:27
|
LL | give_any(|y| x = Some(y));

View File

@ -4,7 +4,7 @@ warning: not reporting region error due to nll
LL | with_int(|y| x = Some(y));
| ^
error: assignment requires that data must outlive free region `'_#2r`
error: free region `` does not outlive free region `'_#2r`
--> $DIR/regions-escape-bound-fn-2.rs:18:27
|
LL | with_int(|y| x = Some(y));

View File

@ -32,7 +32,7 @@ LL | |
LL | | // Only works if 'x: 'y:
LL | | demand_y(x, y, x.get()) //~ WARNING not reporting region error due to nll
LL | | });
| |_____^
| |______^
note: No external requirements
--> $DIR/propagate-approximated-shorter-to-static-no-bound.rs:44:1

View File

@ -32,7 +32,7 @@ LL | | // Only works if 'x: 'y:
LL | | demand_y(x, y, x.get())
LL | | //~^ WARNING not reporting region error due to nll
LL | | });
| |_____^
| |______^
note: No external requirements
--> $DIR/propagate-approximated-shorter-to-static-wrong-bound.rs:47:1

View File

@ -22,7 +22,7 @@ where
for<'b> &'b T: A,
<&'static T as A>::X: Sized
{
let _x = *s; //~ ERROR free region `'a` does not outlive free region `'static`
let _x = *s; //~ ERROR assignment requires that data must outlive free region `'static`
}
fn main() {}

View File

@ -1,7 +1,7 @@
error: free region `'a` does not outlive free region `'static`
error: assignment requires that data must outlive free region `'static`
--> $DIR/issue-50716.rs:25:14
|
LL | let _x = *s; //~ ERROR free region `'a` does not outlive free region `'static`
LL | let _x = *s; //~ ERROR assignment requires that data must outlive free region `'static`
| ^^
error: aborting due to previous error