1 error: generator cannot be sent between threads safely
2 --> $DIR/drop-yield-twice.rs:7:17
6 LL | | let guard = Foo(42);
11 | |_____^ generator is not `Send`
13 = help: within `[generator@$DIR/drop-yield-twice.rs:7:17: 7:19]`, the trait `Send` is not implemented for `Foo`
14 note: generator is not `Send` as this value is used across a yield
15 --> $DIR/drop-yield-twice.rs:9:9
17 LL | let guard = Foo(42);
18 | ----- has type `Foo` which is not `Send`
20 | ^^^^^ yield occurs here, with `guard` maybe used later
23 | - `guard` is later dropped here
24 note: required by a bound in `assert_send`
25 --> $DIR/drop-yield-twice.rs:15:19
27 LL | fn assert_send<T: Send>(_: T) {}
28 | ^^^^ required by this bound in `assert_send`
30 error: aborting due to previous error