1 error[E0277]: `std::rc::Rc<()>` cannot be sent between threads safely
2 --> $DIR/no-send-res-ports.rs:29:5
4 LL | thread::spawn(move|| {
7 | | `std::rc::Rc<()>` cannot be sent between threads safely
10 LL | | println!("{:?}", y);
12 | |_____- within this `[closure@$DIR/no-send-res-ports.rs:29:19: 33:6 x:main::Foo]`
14 ::: $SRC_DIR/libstd/thread/mod.rs:LL:COL
16 LL | F: Send + 'static,
17 | ---- required by this bound in `std::thread::spawn`
19 = help: within `[closure@$DIR/no-send-res-ports.rs:29:19: 33: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:29:19: 33:6 x:main::Foo]`
24 error: aborting due to previous error
26 For more information about this error, try `rustc --explain E0277`.