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