rust/tests/ui/async-await/issue-64130-2-send.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

23 lines
767 B
Plaintext
Raw Normal View History

error: future cannot be sent between threads safely
2023-06-24 05:02:54 -05:00
--> $DIR/issue-64130-2-send.rs:22:13
|
LL | is_send(bar());
| ^^^^^ future returned by `bar` is not `Send`
|
2023-05-07 13:38:52 -05:00
= help: within `impl Future<Output = ()>`, the trait `Send` is not implemented for `Foo`
note: future is not `Send` as this value is used across an await
2023-05-07 13:38:52 -05:00
--> $DIR/issue-64130-2-send.rs:15:11
|
2023-05-07 13:38:52 -05:00
LL | let x = Foo;
| - has type `Foo` which is not `Send`
LL | baz().await;
2023-04-25 13:59:16 -05:00
| ^^^^^ await occurs here, with `x` maybe used later
note: required by a bound in `is_send`
2023-05-07 13:38:52 -05:00
--> $DIR/issue-64130-2-send.rs:11:15
|
LL | fn is_send<T: Send>(t: T) { }
| ^^^^ required by this bound in `is_send`
error: aborting due to previous error