1 error: future cannot be sent between threads safely
2 --> $DIR/issue-70935-complex-spans.rs:10:45
4 LL | fn foo(tx: std::sync::mpsc::Sender<i32>) -> impl Future + Send {
5 | ^^^^^^^^^^^^^^^^^^ future created by async block is not `Send`
7 = help: the trait `Sync` is not implemented for `Sender<i32>`
8 note: future is not `Send` as this value is used across an await
9 --> $DIR/issue-70935-complex-spans.rs:13:9
12 LL | | foo(tx.clone());
14 | |________________^ first, await occurs here, with the value maybe used later...
15 note: the value is later dropped here
16 --> $DIR/issue-70935-complex-spans.rs:15:17
20 note: this has type `[closure@$DIR/issue-70935-complex-spans.rs:13:13: 15:10]` which is not `Send`
21 --> $DIR/issue-70935-complex-spans.rs:13:13
25 LL | | foo(tx.clone());
29 error: aborting due to previous error