fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
767 B22 linesraw
1error: future cannot be sent between threads safely
2  --> $DIR/issue-64130-2-send.rs:22:13
3   |
4LL |     is_send(bar());
5   |             ^^^^^ future returned by `bar` is not `Send`
6   |
7   = help: within `impl Future<Output = ()>`, the trait `Send` is not implemented for `Foo`
8note: future is not `Send` as this value is used across an await
9  --> $DIR/issue-64130-2-send.rs:15:11
10   |
11LL |     let x = Foo;
12   |         - has type `Foo` which is not `Send`
13LL |     baz().await;
14   |           ^^^^^ await occurs here, with `x` maybe used later
15note: required by a bound in `is_send`
16  --> $DIR/issue-64130-2-send.rs:11:15
17   |
18LL | fn is_send<T: Send>(t: T) { }
19   |               ^^^^ required by this bound in `is_send`
20
21error: aborting due to previous error
22