1 error[E0277]: `std::rc::Rc<()>` cannot be sent between threads safely
2 --> $DIR/no-send-res-ports.rs:25:5
4 LL | thread::spawn(move|| {
5 | ^^^^^^^^^^^^^ `std::rc::Rc<()>` cannot be sent between threads safely
7 = 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<()>`
8 = note: required because it appears within the type `Port<()>`
9 = note: required because it appears within the type `main::Foo`
10 = note: required because it appears within the type `[closure@$DIR/no-send-res-ports.rs:25:19: 29:6 x:main::Foo]`
11 = note: required by `std::thread::spawn`
13 error: aborting due to previous error
15 For more information about this error, try `rustc --explain E0277`.