1 error[E0507]: cannot move out of `self.b`, as `self` is a captured variable in an `Fn` closure
2 --> $DIR/issue-103624.rs:16:13
4 LL | async fn foo(&self) {
5 | ----- captured outer variable
6 LL | let bar = self.b.bar().await;
7 LL | spawn_blocking(move || {
8 | ------- captured by this `Fn` closure
11 | ^^^^^^ move occurs because `self.b` has type `StructB`, which does not implement the `Copy` trait
13 error[E0521]: borrowed data escapes outside of associated function
14 --> $DIR/issue-103624.rs:14:9
16 LL | async fn foo(&self) {
19 | `self` is a reference that is only valid in the associated function body
20 | let's call the lifetime of this reference `'1`
21 LL | let bar = self.b.bar().await;
22 LL | / spawn_blocking(move || {
29 | |__________`self` escapes the associated function body here
30 | argument requires that `'1` must outlive `'static`
32 error: aborting due to 2 previous errors
34 Some errors have detailed explanations: E0507, E0521.
35 For more information about an error, try `rustc --explain E0507`.