fork/rust
git clone https://git.julia.blue/fork/rust
73528e339aa
1.40.0
1error[E0277]: `std::rc::Rc<()>` cannot be sent between threads safely 2 --> $DIR/no-send-res-ports.rs:27:5 3 | 4LL | thread::spawn(move|| { 5 | ^^^^^^^^^^^^^ `std::rc::Rc<()>` cannot be sent between threads safely 6 | 7 ::: $SRC_DIR/libstd/thread/mod.rs:LL:COL 8 | 9LL | F: FnOnce() -> T, F: Send + 'static, T: Send + 'static 10 | ---- required by this bound in `std::thread::spawn` 11 | 12 = help: within `[closure@$DIR/no-send-res-ports.rs:27:19: 31:6 x:main::Foo]`, the trait `std::marker::Send` is not implemented for `std::rc::Rc<()>` 13 = note: required because it appears within the type `Port<()>` 14 = note: required because it appears within the type `main::Foo` 15 = note: required because it appears within the type `[closure@$DIR/no-send-res-ports.rs:27:19: 31:6 x:main::Foo]` 16 17error: aborting due to previous error 18 19For more information about this error, try `rustc --explain E0277`.