fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error: generator cannot be sent between threads safely 2 --> $DIR/drop-yield-twice.rs:7:5 3 | 4LL | assert_send(|| { 5 | ^^^^^^^^^^^ generator is not `Send` 6 | 7 = help: within `{generator@$DIR/drop-yield-twice.rs:7:17: 7:19}`, the trait `Send` is not implemented for `Foo` 8note: generator is not `Send` as this value is used across a yield 9 --> $DIR/drop-yield-twice.rs:9:9 10 | 11LL | let guard = Foo(42); 12 | ----- has type `Foo` which is not `Send` 13LL | yield; 14 | ^^^^^ yield occurs here, with `guard` maybe used later 15note: required by a bound in `assert_send` 16 --> $DIR/drop-yield-twice.rs:15:19 17 | 18LL | fn assert_send<T: Send>(_: T) {} 19 | ^^^^ required by this bound in `assert_send` 20 21error: aborting due to previous error 22