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

Commit 0ee723e

Browse files
committed
Update nll test
1 parent 10a74ac commit 0ee723e

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
error[E0521]: borrowed data escapes outside of associated function
2+
--> $DIR/issue-72312.rs:13:24
3+
|
4+
LL | pub async fn start(&self) {
5+
| ----- `self` is a reference that is only valid in the associated function body
6+
...
7+
LL | require_static(async move {
8+
| ________________________^
9+
LL | | &self;
10+
LL | | });
11+
| |_________^ `self` escapes the associated function body here
12+
13+
error: aborting due to previous error
14+
15+
For more information about this error, try `rustc --explain E0521`.

0 commit comments

Comments
 (0)