1 error: future cannot be sent between threads safely
2 --> $DIR/async-await-let-else.rs:48:13
4 LL | is_send(foo(Some(true)));
5 | ^^^^^^^^^^^^^^^ future returned by `foo` is not `Send`
7 = help: within `impl Future<Output = ()>`, the trait `Send` is not implemented for `Rc<()>`
8 note: future is not `Send` as this value is used across an await
9 --> $DIR/async-await-let-else.rs:11:14
11 LL | let r = Rc::new(());
12 | - has type `Rc<()>` which is not `Send`
14 | ^^^^^^ await occurs here, with `r` maybe used later
16 | - `r` is later dropped here
17 note: required by a bound in `is_send`
18 --> $DIR/async-await-let-else.rs:19:15
20 LL | fn is_send<T: Send>(_: T) {}
21 | ^^^^ required by this bound in `is_send`
23 error: future cannot be sent between threads safely
24 --> $DIR/async-await-let-else.rs:50:13
26 LL | is_send(foo2(Some(true)));
27 | ^^^^^^^^^^^^^^^^ future returned by `foo2` is not `Send`
29 = help: within `impl Future<Output = ()>`, the trait `Send` is not implemented for `Rc<()>`
30 note: future is not `Send` as this value is used across an await
31 --> $DIR/async-await-let-else.rs:23:26
33 LL | bar2(Rc::new(())).await
34 | ----------- ^^^^^^ await occurs here, with `Rc::new(())` maybe used later
36 | has type `Rc<()>` which is not `Send`
38 | - `Rc::new(())` is later dropped here
39 note: required by a bound in `is_send`
40 --> $DIR/async-await-let-else.rs:19:15
42 LL | fn is_send<T: Send>(_: T) {}
43 | ^^^^ required by this bound in `is_send`
45 error: future cannot be sent between threads safely
46 --> $DIR/async-await-let-else.rs:52:13
48 LL | is_send(foo3(Some(true)));
49 | ^^^^^^^^^^^^^^^^ future returned by `foo3` is not `Send`
51 = help: within `impl Future<Output = ()>`, the trait `Send` is not implemented for `Rc<()>`
52 note: future is not `Send` as this value is used across an await
53 --> $DIR/async-await-let-else.rs:33:28
55 LL | (Rc::new(()), bar().await);
56 | ----------- ^^^^^^ await occurs here, with `Rc::new(())` maybe used later
58 | has type `Rc<()>` which is not `Send`
59 note: `Rc::new(())` is later dropped here
60 --> $DIR/async-await-let-else.rs:33:35
62 LL | (Rc::new(()), bar().await);
64 note: required by a bound in `is_send`
65 --> $DIR/async-await-let-else.rs:19:15
67 LL | fn is_send<T: Send>(_: T) {}
68 | ^^^^ required by this bound in `is_send`
70 error: future cannot be sent between threads safely
71 --> $DIR/async-await-let-else.rs:54:13
73 LL | is_send(foo4(Some(true)));
74 | ^^^^^^^^^^^^^^^^ future returned by `foo4` is not `Send`
76 = help: within `impl Future<Output = ()>`, the trait `Send` is not implemented for `Rc<()>`
77 note: future is not `Send` as this value is used across an await
78 --> $DIR/async-await-let-else.rs:41:14
80 LL | let r = Rc::new(());
81 | - has type `Rc<()>` which is not `Send`
83 | ^^^^^^ await occurs here, with `r` maybe used later
86 | - `r` is later dropped here
87 note: required by a bound in `is_send`
88 --> $DIR/async-await-let-else.rs:19:15
90 LL | fn is_send<T: Send>(_: T) {}
91 | ^^^^ required by this bound in `is_send`
93 error: aborting due to 4 previous errors