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

16 lines
550 B
Plaintext
Raw Normal View History

2021-10-12 08:16:36 -05:00
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`.