Updated affected tests after rebase.
This commit is contained in:
parent
15aad83560
commit
c0c4741ef7
@ -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));
|
||||
|
@ -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));
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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() {}
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user