1 error: generator cannot be sent between threads safely
2 --> $DIR/ref-upvar-not-send.rs:15:17
4 LL | assert_send(move || {
11 | |_____^ generator is not `Send`
13 = help: the trait `Sync` is not implemented for `*mut ()`
14 note: captured value is not `Send` because `&` references cannot be sent unless their referent is `Sync`
15 --> $DIR/ref-upvar-not-send.rs:19:18
18 | ^ has type `&*mut ()` which is not `Send`, because `*mut ()` is not `Sync`
19 note: required by a bound in `assert_send`
20 --> $DIR/ref-upvar-not-send.rs:6:19
22 LL | fn assert_send<T: Send>(_: T) {}
23 | ^^^^ required by this bound in `assert_send`
25 error: generator cannot be sent between threads safely
26 --> $DIR/ref-upvar-not-send.rs:23:17
28 LL | assert_send(move || {
35 | |_____^ generator is not `Send`
37 = help: within `[generator@$DIR/ref-upvar-not-send.rs:23:17: 23:24]`, the trait `Send` is not implemented for `*mut ()`
38 note: captured value is not `Send` because `&mut` references cannot be sent unless their referent is `Send`
39 --> $DIR/ref-upvar-not-send.rs:27:18
42 | ^ has type `&mut *mut ()` which is not `Send`, because `*mut ()` is not `Send`
43 note: required by a bound in `assert_send`
44 --> $DIR/ref-upvar-not-send.rs:6:19
46 LL | fn assert_send<T: Send>(_: T) {}
47 | ^^^^ required by this bound in `assert_send`
49 error: aborting due to 2 previous errors