fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1warning: future cannot be sent between threads safely 2 --> $DIR/ice-10645.rs:5:1 3 | 4LL | pub async fn bar<'a, T: 'a>(_: T) {} 5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ future returned by `bar` is not `Send` 6 | 7note: captured value is not `Send` 8 --> $DIR/ice-10645.rs:5:29 9 | 10LL | 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)]` 15 16warning: 1 warning emitted 17