]> git.proxmox.com Git - rustc.git/blob - tests/ui/async-await/in-trait/missing-send-bound.next.stderr
New upstream version 1.71.1+dfsg1
[rustc.git] / tests / ui / async-await / in-trait / missing-send-bound.next.stderr
1 error: future cannot be sent between threads safely
2 --> $DIR/missing-send-bound.rs:16:20
3 |
4 LL | assert_is_send(test::<T>());
5 | ^^^^^^^^^^^ future returned by `test` is not `Send`
6 |
7 = help: within `impl Future<Output = ()>`, the trait `Send` is not implemented for `impl Future<Output = ()>`
8 note: future is not `Send` as it awaits another future which is not `Send`
9 --> $DIR/missing-send-bound.rs:12:5
10 |
11 LL | T::bar().await;
12 | ^^^^^^^^ await occurs here on type `impl Future<Output = ()>`, which is not `Send`
13 note: required by a bound in `assert_is_send`
14 --> $DIR/missing-send-bound.rs:20:27
15 |
16 LL | fn assert_is_send(_: impl Send) {}
17 | ^^^^ required by this bound in `assert_is_send`
18
19 error: aborting due to previous error
20