Update nll test

This commit is contained in:
Esteban Kuber 2021-10-12 13:16:36 +00:00
parent 10a74ac2e0
commit 0ee723edb5

View File

@ -0,0 +1,15 @@
error[E0521]: borrowed data escapes outside of associated function
--> $DIR/issue-72312.rs:13:24
|
LL | pub async fn start(&self) {
| ----- `self` is a reference that is only valid in the associated function body
...
LL | require_static(async move {
| ________________________^
LL | | &self;
LL | | });
| |_________^ `self` escapes the associated function body here
error: aborting due to previous error
For more information about this error, try `rustc --explain E0521`.