1 error: generator cannot be sent between threads safely
2 --> $DIR/partial-drop.rs:14:17
7 LL | | // FIXME: it would be nice to make this work.
8 LL | | let guard = Bar { foo: Foo, x: 42 };
9 LL | | drop(guard.foo);
12 | |_____^ generator is not `Send`
14 = help: within `[generator@$DIR/partial-drop.rs:14:17: 14:19]`, the trait `Send` is not implemented for `Foo`
15 note: generator is not `Send` as this value is used across a yield
16 --> $DIR/partial-drop.rs:19:9
18 LL | let guard = Bar { foo: Foo, x: 42 };
19 | ----- has type `Bar` which is not `Send`
22 | ^^^^^ yield occurs here, with `guard` maybe used later
24 | - `guard` is later dropped here
25 note: required by a bound in `assert_send`
26 --> $DIR/partial-drop.rs:42:19
28 LL | fn assert_send<T: Send>(_: T) {}
29 | ^^^^ required by this bound in `assert_send`
31 error: generator cannot be sent between threads safely
32 --> $DIR/partial-drop.rs:22:17
37 LL | | // FIXME: it would be nice to make this work.
38 LL | | let guard = Bar { foo: Foo, x: 42 };
42 | |_____^ generator is not `Send`
44 = help: within `[generator@$DIR/partial-drop.rs:22:17: 22:19]`, the trait `Send` is not implemented for `Foo`
45 note: generator is not `Send` as this value is used across a yield
46 --> $DIR/partial-drop.rs:29:9
48 LL | let guard = Bar { foo: Foo, x: 42 };
49 | ----- has type `Bar` which is not `Send`
52 | ^^^^^ yield occurs here, with `guard` maybe used later
54 | - `guard` is later dropped here
55 note: required by a bound in `assert_send`
56 --> $DIR/partial-drop.rs:42:19
58 LL | fn assert_send<T: Send>(_: T) {}
59 | ^^^^ required by this bound in `assert_send`
61 error: generator cannot be sent between threads safely
62 --> $DIR/partial-drop.rs:32:17
67 LL | | // FIXME: it would be nice to make this work.
68 LL | | let guard = Bar { foo: Foo, x: 42 };
72 | |_____^ generator is not `Send`
74 = help: within `[generator@$DIR/partial-drop.rs:32:17: 32:19]`, the trait `Send` is not implemented for `Foo`
75 note: generator is not `Send` as this value is used across a yield
76 --> $DIR/partial-drop.rs:38:9
78 LL | let guard = Bar { foo: Foo, x: 42 };
79 | ----- has type `Bar` which is not `Send`
82 | ^^^^^ yield occurs here, with `guard` maybe used later
84 | - `guard` is later dropped here
85 note: required by a bound in `assert_send`
86 --> $DIR/partial-drop.rs:42:19
88 LL | fn assert_send<T: Send>(_: T) {}
89 | ^^^^ required by this bound in `assert_send`
91 error: aborting due to 3 previous errors