Update nll test
This commit is contained in:
parent
10a74ac2e0
commit
0ee723edb5
15
src/test/ui/async-await/issues/issue-72312.nll.stderr
Normal file
15
src/test/ui/async-await/issues/issue-72312.nll.stderr
Normal 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`.
|
Loading…
Reference in New Issue
Block a user