mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-16 18:44:56 +00:00
17 lines
541 B
Plaintext
17 lines
541 B
Plaintext
warning: future cannot be sent between threads safely
|
|
--> $DIR/ice-10645.rs:5: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-10645.rs:5: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`
|
|
|
|
warning: 1 warning emitted
|
|
|