]> git.lizzy.rs Git - rust.git/blob - src/test/ui/async-await/partial-drop-partial-reinit.no_drop_tracking.stderr
Rollup merge of #102215 - alexcrichton:wasm-link-whole-archive, r=estebank
[rust.git] / src / test / ui / async-await / partial-drop-partial-reinit.no_drop_tracking.stderr
1 error[E0277]: `NotSend` cannot be sent between threads safely
2   --> $DIR/partial-drop-partial-reinit.rs:9:16
3    |
4 LL |     gimme_send(foo());
5    |     ---------- ^^^^^ `NotSend` cannot be sent between threads safely
6    |     |
7    |     required by a bound introduced by this call
8 ...
9 LL | async fn foo() {
10    |                - within this `impl Future<Output = ()>`
11    |
12    = help: within `impl Future<Output = ()>`, the trait `Send` is not implemented for `NotSend`
13    = note: required because it appears within the type `(NotSend,)`
14    = note: required because it captures the following types: `ResumeTy`, `(NotSend,)`, `impl Future<Output = ()>`, `()`
15 note: required because it's used within this `async fn` body
16   --> $DIR/partial-drop-partial-reinit.rs:31:16
17    |
18 LL |   async fn foo() {
19    |  ________________^
20 LL | |
21 LL | |
22 LL | |     let mut x = (NotSend {},);
23 ...  |
24 LL | |     bar().await;
25 LL | | }
26    | |_^
27 note: required by a bound in `gimme_send`
28   --> $DIR/partial-drop-partial-reinit.rs:17:18
29    |
30 LL | fn gimme_send<T: Send>(t: T) {
31    |                  ^^^^ required by this bound in `gimme_send`
32
33 error: aborting due to previous error
34
35 For more information about this error, try `rustc --explain E0277`.