fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0521]: borrowed data escapes outside of method 2 --> $DIR/issue-72312.rs:12:9 3 | 4LL | pub async fn start(&self) { 5 | ----- 6 | | 7 | `self` is a reference that is only valid in the method body 8 | let's call the lifetime of this reference `'1` 9... 10LL | / require_static(async move { 11LL | | 12LL | | 13LL | | 14LL | | &self; 15LL | | }); 16 | | ^ 17 | | | 18 | |__________`self` escapes the method body here 19 | argument requires that `'1` must outlive `'static` 20 21error: aborting due to previous error 22 23For more information about this error, try `rustc --explain E0521`.