2023-07-02 12:35:19 +00:00
|
|
|
warning: future cannot be sent between threads safely
|
2024-02-27 14:25:18 +00:00
|
|
|
--> tests/ui/crashes/ice-10645.rs:5:1
|
2023-04-18 16:15:06 +00:00
|
|
|
|
|
|
|
|
LL | pub async fn bar<'a, T: 'a>(_: T) {}
|
2023-10-02 21:31:46 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ future returned by `bar` is not `Send`
|
2023-04-18 16:15:06 +00:00
|
|
|
|
|
|
|
|
note: captured value is not `Send`
|
2024-02-27 14:25:18 +00:00
|
|
|
--> tests/ui/crashes/ice-10645.rs:5:29
|
2023-04-18 16:15:06 +00: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-08-01 12:02:21 +00:00
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::future_not_send)]`
|
2023-04-18 16:15:06 +00:00
|
|
|
|
2023-07-02 12:35:19 +00:00
|
|
|
warning: 1 warning emitted
|
2023-04-18 16:15:06 +00:00
|
|
|
|