mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-24 03:53:20 +00:00
16 lines
548 B
Text
16 lines
548 B
Text
error: future cannot be sent between threads safely
|
|
--> $DIR/ice-5207.rs:6:35
|
|
|
|
|
LL | pub async fn bar<'a, T: 'a>(_: T) {}
|
|
| ^ future returned by `bar` is not `Send`
|
|
|
|
|
note: captured value is not `Send`
|
|
--> $DIR/ice-5207.rs:6:29
|
|
|
|
|
LL | pub async fn bar<'a, T: 'a>(_: T) {}
|
|
| ^ has type `T` which is not `Send`
|
|
= note: `T` doesn't implement `std::marker::Send`
|
|
= note: `-D clippy::future-not-send` implied by `-D warnings`
|
|
|
|
error: aborting due to previous error
|
|
|