summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/crashes/ice-10645.stderr
blob: 7fc62d4fcf855e5b1c3254a78dc399e5f69b2358 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
warning: future cannot be sent between threads safely
  --> $DIR/ice-10645.rs:5:1
   |
LL | pub async fn bar<'a, T: 'a>(_: T) {}
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ future returned by `bar` is not `Send`
   |
note: captured value is not `Send`
  --> $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`
   = help: to override `-D warnings` add `#[allow(clippy::future_not_send)]`

warning: 1 warning emitted