fork/rust

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

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
948 B25 linesraw
1error[E0277]: `std::sync::mpsc::Receiver<()>` cannot be shared between threads safely
2  --> $DIR/closure-move-sync.rs:6:27
3   |
4LL |       let t = thread::spawn(|| {
5   |  _____________-------------_^
6   | |             |
7   | |             required by a bound introduced by this call
8LL | |         recv.recv().unwrap();
9LL | |
10LL | |     });
11   | |_____^ `std::sync::mpsc::Receiver<()>` cannot be shared between threads safely
12   |
13   = help: the trait `Sync` is not implemented for `std::sync::mpsc::Receiver<()>`
14   = note: required for `&std::sync::mpsc::Receiver<()>` to implement `Send`
15note: required because it's used within this closure
16  --> $DIR/closure-move-sync.rs:6:27
17   |
18LL |     let t = thread::spawn(|| {
19   |                           ^^
20note: required by a bound in `spawn`
21  --> $SRC_DIR/std/src/thread/mod.rs:LL:COL
22
23error: aborting due to previous error
24
25For more information about this error, try `rustc --explain E0277`.