1 warning: future cannot be sent between threads safely
2 --> $DIR/ice-10645.rs:5:1
4 LL | pub async fn bar<'a, T: 'a>(_: T) {}
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ future returned by `bar` is not `Send`
7 note: captured value is not `Send`
8 --> $DIR/ice-10645.rs:5:29
10 LL | pub async fn bar<'a, T: 'a>(_: T) {}
11 | ^ has type `T` which is not `Send`
12 = note: `T` doesn't implement `std::marker::Send`
13 = note: `-D clippy::future-not-send` implied by `-D warnings`
14 = help: to override `-D warnings` add `#[allow(clippy::future_not_send)]`
16 warning: 1 warning emitted