7 async fn spawn_blocking<T>(f: impl (Fn() -> T) + Send + Sync + 'static) -> T {
13 let bar = self.b.bar().await;
14 spawn_blocking(move || {
15 //~^ ERROR borrowed data escapes outside of associated function
17 //~^ ERROR cannot move out of `self.b`, as `self` is a captured variable in an `Fn` closure
26 async fn bar(&self) -> Option<u8> {