fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error: future cannot be sent between threads safely 2 --> $DIR/drop-track-field-assign-nonsend.rs:42:17 3 | 4LL | assert_send(agent.handle()); 5 | ^^^^^^^^^^^^^^ future returned by `handle` is not `Send` 6 | 7 = help: within `impl Future<Output = ()>`, the trait `Send` is not implemented for `Rc<String>` 8note: future is not `Send` as this value is used across an await 9 --> $DIR/drop-track-field-assign-nonsend.rs:20:39 10 | 11LL | let mut info = self.info_result.clone(); 12 | -------- has type `InfoResult` which is not `Send` 13... 14LL | let _ = send_element(element).await; 15 | ^^^^^ await occurs here, with `mut info` maybe used later 16note: required by a bound in `assert_send` 17 --> $DIR/drop-track-field-assign-nonsend.rs:37:19 18 | 19LL | fn assert_send<T: Send>(_: T) {} 20 | ^^^^ required by this bound in `assert_send` 21 22error: aborting due to previous error 23