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