]> git.proxmox.com Git - rustc.git/blob - src/tools/clippy/tests/ui/crashes/ice-10645.stderr
New upstream version 1.75.0+dfsg1
[rustc.git] / src / tools / clippy / tests / ui / crashes / ice-10645.stderr
1 warning: future cannot be sent between threads safely
2 --> $DIR/ice-10645.rs:5:1
3 |
4 LL | pub async fn bar<'a, T: 'a>(_: T) {}
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ future returned by `bar` is not `Send`
6 |
7 note: captured value is not `Send`
8 --> $DIR/ice-10645.rs:5:29
9 |
10 LL | pub async fn bar<'a, T: 'a>(_: T) {}
11 | ^ has type `T` which is not `Send`
12 = note: `T` doesn't implement `std::marker::Send`
13 = note: `-D clippy::future-not-send` implied by `-D warnings`
14 = help: to override `-D warnings` add `#[allow(clippy::future_not_send)]`
15
16 warning: 1 warning emitted
17