Skip to content

Commit 570cf75

Browse files
committed
bless tests
1 parent 83c1788 commit 570cf75

File tree

1 file changed

+6
-21
lines changed

1 file changed

+6
-21
lines changed

Diff for: src/test/ui/regions/closure-in-projection-issue-97405.stderr

+6-21
Original file line numberDiff line numberDiff line change
@@ -2,43 +2,28 @@ error[E0310]: the associated type `<impl Iterator as Iterator>::Item` may not li
22
--> $DIR/closure-in-projection-issue-97405.rs:24:5
33
|
44
LL | assert_static(opaque(async move { t; }).next());
5-
| ^^^^^^^^^^^^^
5+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
66
|
77
= help: consider adding an explicit lifetime bound `<impl Iterator as Iterator>::Item: 'static`...
8-
= note: ...so that the type `Option<<impl Iterator as Iterator>::Item>` will meet its required lifetime bounds...
9-
note: ...that is required by this bound
10-
--> $DIR/closure-in-projection-issue-97405.rs:11:21
11-
|
12-
LL | fn assert_static<T: 'static>(_: T) {}
13-
| ^^^^^^^
8+
= note: ...so that the type `<impl Iterator as Iterator>::Item` will meet its required lifetime bounds
149

1510
error[E0310]: the associated type `<impl Iterator as Iterator>::Item` may not live long enough
1611
--> $DIR/closure-in-projection-issue-97405.rs:26:5
1712
|
1813
LL | assert_static(opaque(move || { t; }).next());
19-
| ^^^^^^^^^^^^^
14+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2015
|
2116
= help: consider adding an explicit lifetime bound `<impl Iterator as Iterator>::Item: 'static`...
22-
= note: ...so that the type `Option<<impl Iterator as Iterator>::Item>` will meet its required lifetime bounds...
23-
note: ...that is required by this bound
24-
--> $DIR/closure-in-projection-issue-97405.rs:11:21
25-
|
26-
LL | fn assert_static<T: 'static>(_: T) {}
27-
| ^^^^^^^
17+
= note: ...so that the type `<impl Iterator as Iterator>::Item` will meet its required lifetime bounds
2818

2919
error[E0310]: the associated type `<impl Iterator as Iterator>::Item` may not live long enough
3020
--> $DIR/closure-in-projection-issue-97405.rs:28:5
3121
|
3222
LL | assert_static(opaque(opaque(async move { t; }).next()).next());
33-
| ^^^^^^^^^^^^^
23+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
3424
|
3525
= help: consider adding an explicit lifetime bound `<impl Iterator as Iterator>::Item: 'static`...
36-
= note: ...so that the type `Option<<impl Iterator as Iterator>::Item>` will meet its required lifetime bounds...
37-
note: ...that is required by this bound
38-
--> $DIR/closure-in-projection-issue-97405.rs:11:21
39-
|
40-
LL | fn assert_static<T: 'static>(_: T) {}
41-
| ^^^^^^^
26+
= note: ...so that the type `<impl Iterator as Iterator>::Item` will meet its required lifetime bounds
4227

4328
error: aborting due to 3 previous errors
4429

0 commit comments

Comments
 (0)