fork/rust
git clone https://git.julia.blue/fork/rust
49cae55760d
1.44.0
1error: future cannot be sent between threads safely 2 --> $DIR/issue-68112.rs:34:5 3 | 4LL | fn require_send(_: impl Send) {} 5 | ---- required by this bound in `require_send` 6... 7LL | require_send(send_fut); 8 | ^^^^^^^^^^^^ future created by async block is not `Send` 9 | 10 = help: the trait `std::marker::Sync` is not implemented for `std::cell::RefCell<i32>` 11note: future is not `Send` as it awaits another future which is not `Send` 12 --> $DIR/issue-68112.rs:31:17 13 | 14LL | let _ = non_send_fut.await; 15 | ^^^^^^^^^^^^ await occurs here on type `impl std::future::Future`, which is not `Send` 16 17error: future cannot be sent between threads safely 18 --> $DIR/issue-68112.rs:43:5 19 | 20LL | fn require_send(_: impl Send) {} 21 | ---- required by this bound in `require_send` 22... 23LL | require_send(send_fut); 24 | ^^^^^^^^^^^^ future created by async block is not `Send` 25 | 26 = help: the trait `std::marker::Sync` is not implemented for `std::cell::RefCell<i32>` 27note: future is not `Send` as it awaits another future which is not `Send` 28 --> $DIR/issue-68112.rs:40:17 29 | 30LL | let _ = make_non_send_future1().await; 31 | ^^^^^^^^^^^^^^^^^^^^^^^ await occurs here on type `impl std::future::Future`, which is not `Send` 32 33error[E0277]: `std::cell::RefCell<i32>` cannot be shared between threads safely 34 --> $DIR/issue-68112.rs:60:5 35 | 36LL | fn require_send(_: impl Send) {} 37 | ---- required by this bound in `require_send` 38... 39LL | require_send(send_fut); 40 | ^^^^^^^^^^^^ `std::cell::RefCell<i32>` cannot be shared between threads safely 41 | 42 = help: the trait `std::marker::Sync` is not implemented for `std::cell::RefCell<i32>` 43 = note: required because of the requirements on the impl of `std::marker::Send` for `std::sync::Arc<std::cell::RefCell<i32>>` 44 = note: required because it appears within the type `[static generator@$DIR/issue-68112.rs:47:31: 47:36 t:std::sync::Arc<std::cell::RefCell<i32>> {}]` 45 = note: required because it appears within the type `std::future::from_generator::GenFuture<[static generator@$DIR/issue-68112.rs:47:31: 47:36 t:std::sync::Arc<std::cell::RefCell<i32>> {}]>` 46 = note: required because it appears within the type `impl std::future::Future` 47 = note: required because it appears within the type `impl std::future::Future` 48 = note: required because it appears within the type `impl std::future::Future` 49 = note: required because it appears within the type `{std::future::ResumeTy, impl std::future::Future, (), i32, Ready<i32>}` 50 = note: required because it appears within the type `[static generator@$DIR/issue-68112.rs:55:26: 59:6 {std::future::ResumeTy, impl std::future::Future, (), i32, Ready<i32>}]` 51 = note: required because it appears within the type `std::future::from_generator::GenFuture<[static generator@$DIR/issue-68112.rs:55:26: 59:6 {std::future::ResumeTy, impl std::future::Future, (), i32, Ready<i32>}]>` 52 = note: required because it appears within the type `impl std::future::Future` 53 54error: aborting due to 3 previous errors 55 56For more information about this error, try `rustc --explain E0277`.