Skip to content

Commit c0c4741

Browse files
committed
Updated affected tests after rebase.
1 parent 15aad83 commit c0c4741

6 files changed

+7
-7
lines changed

src/test/ui/borrowck/issue-45983.nll.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ warning: not reporting region error due to nll
44
LL | give_any(|y| x = Some(y));
55
| ^
66

7-
error: assignment requires that data must outlive free region `'_#2r`
7+
error: free region `` does not outlive free region `'_#2r`
88
--> $DIR/issue-45983.rs:17:27
99
|
1010
LL | give_any(|y| x = Some(y));

src/test/ui/borrowck/regions-escape-bound-fn-2.nll.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ warning: not reporting region error due to nll
44
LL | with_int(|y| x = Some(y));
55
| ^
66

7-
error: assignment requires that data must outlive free region `'_#2r`
7+
error: free region `` does not outlive free region `'_#2r`
88
--> $DIR/regions-escape-bound-fn-2.rs:18:27
99
|
1010
LL | with_int(|y| x = Some(y));

src/test/ui/nll/closure-requirements/propagate-approximated-shorter-to-static-no-bound.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ LL | |
3232
LL | | // Only works if 'x: 'y:
3333
LL | | demand_y(x, y, x.get()) //~ WARNING not reporting region error due to nll
3434
LL | | });
35-
| |_____^
35+
| |______^
3636

3737
note: No external requirements
3838
--> $DIR/propagate-approximated-shorter-to-static-no-bound.rs:44:1

src/test/ui/nll/closure-requirements/propagate-approximated-shorter-to-static-wrong-bound.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ LL | | // Only works if 'x: 'y:
3232
LL | | demand_y(x, y, x.get())
3333
LL | | //~^ WARNING not reporting region error due to nll
3434
LL | | });
35-
| |_____^
35+
| |______^
3636

3737
note: No external requirements
3838
--> $DIR/propagate-approximated-shorter-to-static-wrong-bound.rs:47:1

src/test/ui/nll/issue-50716.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ where
2222
for<'b> &'b T: A,
2323
<&'static T as A>::X: Sized
2424
{
25-
let _x = *s; //~ ERROR free region `'a` does not outlive free region `'static`
25+
let _x = *s; //~ ERROR assignment requires that data must outlive free region `'static`
2626
}
2727

2828
fn main() {}

src/test/ui/nll/issue-50716.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
error: free region `'a` does not outlive free region `'static`
1+
error: assignment requires that data must outlive free region `'static`
22
--> $DIR/issue-50716.rs:25:14
33
|
4-
LL | let _x = *s; //~ ERROR free region `'a` does not outlive free region `'static`
4+
LL | let _x = *s; //~ ERROR assignment requires that data must outlive free region `'static`
55
| ^^
66

77
error: aborting due to previous error

0 commit comments

Comments
 (0)