2
0
Fork 0
mirror of https://github.com/rust-lang/rust-clippy synced 2024-12-23 11:33:19 +00:00
rust-clippy/tests/ui/crashes/ice-10645.stderr

18 lines
639 B
Text
Raw Normal View History

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