fork/rust
git clone https://git.julia.blue/fork/rust
49cae55760d
1.44.0
1error[E0277]: `std::rc::Rc<()>` cannot be sent between threads safely 2 --> $DIR/no-send-res-ports.rs:25:5 3 | 4LL | thread::spawn(move|| { 5 | _____^^^^^^^^^^^^^_- 6 | | | 7 | | `std::rc::Rc<()>` cannot be sent between threads safely 8LL | | 9LL | | let y = x; 10LL | | println!("{:?}", y); 11LL | | }); 12 | |_____- within this `[closure@$DIR/no-send-res-ports.rs:25:19: 29:6 x:main::Foo]` 13 | 14 ::: $SRC_DIR/libstd/thread/mod.rs:LL:COL 15 | 16LL | F: Send + 'static, 17 | ---- required by this bound in `std::thread::spawn` 18 | 19 = help: within `[closure@$DIR/no-send-res-ports.rs:25:19: 29:6 x:main::Foo]`, the trait `std::marker::Send` is not implemented for `std::rc::Rc<()>` 20 = note: required because it appears within the type `Port<()>` 21 = note: required because it appears within the type `main::Foo` 22 = note: required because it appears within the type `[closure@$DIR/no-send-res-ports.rs:25:19: 29:6 x:main::Foo]` 23 24error: aborting due to previous error 25 26For more information about this error, try `rustc --explain E0277`.