Skip to content

Commit 9e67309

Browse files
committed
WIP fix error messages for propagate_approximated_shorter_to_static_no_bound
1 parent 8be066f commit 9e67309

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

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

+4-3
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,16 @@ LL | | });
2424
= note: where '_#1r: '_#0r
2525

2626
error: free region `ReFree(DefId(0/0:6 ~ propagate_approximated_shorter_to_static_no_bound[317d]::supply[0]), BrNamed(crate0:DefIndex(1:16), 'a))` does not outlive free region `ReStatic`
27-
--> $DIR/propagate-approximated-shorter-to-static-no-bound.rs:45:5
27+
--> $DIR/propagate-approximated-shorter-to-static-no-bound.rs:45:47
2828
|
29-
LL | / establish_relationships(&cell_a, &cell_b, |_outlives, x, y| {
29+
LL | establish_relationships(&cell_a, &cell_b, |_outlives, x, y| {
30+
| _______________________________________________^
3031
LL | | //~^ ERROR does not outlive free region
3132
LL | |
3233
LL | | // Only works if 'x: 'y:
3334
LL | | demand_y(x, y, x.get()) //~ WARNING not reporting region error due to nll
3435
LL | | });
35-
| |______^
36+
| |_____^
3637

3738
note: No external requirements
3839
--> $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

+4-3
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,16 @@ LL | | });
2424
= note: where '_#1r: '_#0r
2525

2626
error: free region `ReFree(DefId(0/0:6 ~ propagate_approximated_shorter_to_static_wrong_bound[317d]::supply[0]), BrNamed(crate0:DefIndex(1:16), 'a))` does not outlive free region `ReStatic`
27-
--> $DIR/propagate-approximated-shorter-to-static-wrong-bound.rs:48:5
27+
--> $DIR/propagate-approximated-shorter-to-static-wrong-bound.rs:48:47
2828
|
29-
LL | / establish_relationships(&cell_a, &cell_b, |_outlives1, _outlives2, x, y| {
29+
LL | establish_relationships(&cell_a, &cell_b, |_outlives1, _outlives2, x, y| {
30+
| _______________________________________________^
3031
LL | | //~^ ERROR does not outlive free region
3132
LL | | // Only works if 'x: 'y:
3233
LL | | demand_y(x, y, x.get())
3334
LL | | //~^ WARNING not reporting region error due to nll
3435
LL | | });
35-
| |______^
36+
| |_____^
3637

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

0 commit comments

Comments
 (0)