rust/tests/ui/crashes/ice-10645.stderr

17 lines
550 B
Plaintext
Raw Normal View History

error: future cannot be sent between threads safely
2023-04-23 08:11:31 -05:00
--> $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`
2023-04-23 08:11:31 -05:00
--> $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`
error: aborting due to previous error