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