fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #69444 - pietroalbini:stable-next-final-v2-new, r=pietroalbinif3e1a954d2e

1.41.1
938 B19 linesraw
1error[E0277]: `std::rc::Rc<()>` cannot be sent between threads safely
2  --> $DIR/no-send-res-ports.rs:26:5
3   |
4LL |     thread::spawn(move|| {
5   |     ^^^^^^^^^^^^^ `std::rc::Rc<()>` cannot be sent between threads safely
6   | 
7  ::: $SRC_DIR/libstd/thread/mod.rs:LL:COL
8   |
9LL |     F: FnOnce() -> T, F: Send + 'static, T: Send + 'static
10   |                          ---- required by this bound in `std::thread::spawn`
11   |
12   = help: within `[closure@$DIR/no-send-res-ports.rs:26:19: 30:6 x:main::Foo]`, the trait `std::marker::Send` is not implemented for `std::rc::Rc<()>`
13   = note: required because it appears within the type `Port<()>`
14   = note: required because it appears within the type `main::Foo`
15   = note: required because it appears within the type `[closure@$DIR/no-send-res-ports.rs:26:19: 30:6 x:main::Foo]`
16
17error: aborting due to previous error
18
19For more information about this error, try `rustc --explain E0277`.