error[E0277]: `Rc<bool>` cannot be sent between threads safely --> src/main.rs:7:19 | 7 | thread::spawn(move || { | ------------- ^------ | | | | _____|_____________within this `{closure@src/main.rs:7:19: 7:26}` | | | | | required by a bound introduced by this call 8 | | println!("{:?}", value); 9 | | }).join().unwrap(); | |_____^ `Rc<bool>` cannot be sent between threads safely | = help: within `{closure@src/main.rs:7:19: 7:26}`, the trait `Send` is not implemented for `Rc<bool>`, which is required by `{closure@src/main.rs:7:19: 7:26}: Send` note: required because it's used within this closure --> src/main.rs:7:19 | 7 | thread::spawn(move || { | ^^^^^^^ note: required by a bound in `spawn` --> /home/mrg/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/mod.rs:675:8 | 672 | pub fn spawn<F, T>(f: F) -> JoinHandle<T> | ----- required by a bound in this function ... 675 | F: Send + 'static, | ^^^^ required by this bound in `spawn` For more information about this error, try `rustc --explain E0277`.