Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit ff13ad7

Browse files
committed
rebase and update nll test
1 parent 0ee723e commit ff13ad7

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/test/ui/async-await/issues/issue-72312.nll.stderr

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,19 @@ error[E0521]: borrowed data escapes outside of associated function
22
--> $DIR/issue-72312.rs:13:24
33
|
44
LL | pub async fn start(&self) {
5-
| ----- `self` is a reference that is only valid in the associated function body
5+
| -----
6+
| |
7+
| `self` is a reference that is only valid in the associated function body
8+
| let's call the lifetime of this reference `'1`
69
...
710
LL | require_static(async move {
811
| ________________________^
912
LL | | &self;
1013
LL | | });
11-
| |_________^ `self` escapes the associated function body here
14+
| | ^
15+
| | |
16+
| |_________`self` escapes the associated function body here
17+
| argument requires that `'1` must outlive `'static`
1218

1319
error: aborting due to previous error
1420

0 commit comments

Comments
 (0)