1 error[E0277]: `Rc<()>` cannot be sent between threads safely
2 --> $DIR/no-send-res-ports.rs:25:5
4 LL | thread::spawn(move|| {
7 | | `Rc<()>` cannot be sent between threads safely
10 LL | | println!("{:?}", y);
12 | |_____- within this `[closure@$DIR/no-send-res-ports.rs:25:19: 29:6]`
14 = help: within `[closure@$DIR/no-send-res-ports.rs:25:19: 29:6]`, the trait `Send` is not implemented for `Rc<()>`
15 note: required because it appears within the type `Port<()>`
16 --> $DIR/no-send-res-ports.rs:5:8
18 LL | struct Port<T>(Rc<T>);
20 note: required because it appears within the type `Foo`
21 --> $DIR/no-send-res-ports.rs:9:12
25 = note: required because it appears within the type `[closure@$DIR/no-send-res-ports.rs:25:19: 29:6]`
26 note: required by a bound in `spawn`
27 --> $SRC_DIR/std/src/thread/mod.rs:LL:COL
29 LL | F: Send + 'static,
30 | ^^^^ required by this bound in `spawn`
32 error: aborting due to previous error
34 For more information about this error, try `rustc --explain E0277`.