2023-04-23 06:03:09 -05:00
|
|
|
error: future cannot be sent between threads safely
|
2023-05-05 10:45:49 -05:00
|
|
|
--> $DIR/ice-10645.rs:5:35
|
2023-04-18 11:15:06 -05:00
|
|
|
|
|
|
|
|
LL | pub async fn bar<'a, T: 'a>(_: T) {}
|
|
|
|
| ^ future returned by `bar` is not `Send`
|
|
|
|
|
|
|
|
|
note: captured value is not `Send`
|
2023-05-05 10:45:49 -05:00
|
|
|
--> $DIR/ice-10645.rs:5:29
|
2023-04-18 11:15:06 -05:00
|
|
|
|
|
|
|
|
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`
|
|
|
|
|
2023-04-23 06:03:09 -05:00
|
|
|
error: aborting due to previous error
|
2023-04-18 11:15:06 -05:00
|
|
|
|