1 error: future cannot be sent between threads safely
2 --> $DIR/issue-64130-2-send.rs:21:13
5 | ^^^^^ future returned by `bar` is not `Send`
7 = help: within `impl Future`, the trait `Send` is not implemented for `Foo`
8 note: future is not `Send` as this value is used across an await
9 --> $DIR/issue-64130-2-send.rs:15:5
12 | - has type `Foo` which is not `Send`
14 | ^^^^^^^^^^^ await occurs here, with `x` maybe used later
16 | - `x` is later dropped here
17 note: required by a bound in `is_send`
18 --> $DIR/issue-64130-2-send.rs:11:15
20 LL | fn is_send<T: Send>(t: T) { }
21 | ^^^^ required by this bound in `is_send`
23 error: aborting due to previous error