File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -346,11 +346,11 @@ pub trait Copy : Clone {
346346#[ rustc_on_unimplemented(
347347 on(
348348 _Self="std::sync::mpsc::Receiver<T>" ,
349- label="`{Self}` cannot be shared safely, if using a closure consider marking it `move`"
349+ label="`{Self}` cannot be shared safely, consider marking the closure `move`"
350350 ) ,
351351 on(
352352 _Self="std::sync::mpsc::Sender<T>" ,
353- label="`{Self}` cannot be shared safely, if using a closure consider marking it `move`"
353+ label="`{Self}` cannot be shared safely, consider marking the closure `move`"
354354 ) ,
355355 message="`{Self}` cannot be shared between threads safely" ,
356356 label="`{Self}` cannot be shared between threads safely"
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ error[E0277]: `std::sync::mpsc::Receiver<()>` cannot be shared between threads s
22 --> $DIR/closure-move-sync.rs:16:13
33 |
4416 | let t = thread::spawn(|| {
5- | ^^^^^^^^^^^^^ `std::sync::mpsc::Receiver<()>` cannot be shared safely, if using a closure consider marking it `move`
5+ | ^^^^^^^^^^^^^ `std::sync::mpsc::Receiver<()>` cannot be shared safely, consider marking the closure `move`
66 |
77 = help: the trait `std::marker::Sync` is not implemented for `std::sync::mpsc::Receiver<()>`
88 = note: required because of the requirements on the impl of `std::marker::Send` for `&std::sync::mpsc::Receiver<()>`
@@ -13,7 +13,7 @@ error[E0277]: `std::sync::mpsc::Sender<()>` cannot be shared between threads saf
1313 --> $DIR/closure-move-sync.rs:28:5
1414 |
151528 | thread::spawn(|| tx.send(()).unwrap());
16- | ^^^^^^^^^^^^^ `std::sync::mpsc::Sender<()>` cannot be shared safely, if using a closure consider marking it `move`
16+ | ^^^^^^^^^^^^^ `std::sync::mpsc::Sender<()>` cannot be shared safely, consider marking the closure `move`
1717 |
1818 = help: the trait `std::marker::Sync` is not implemented for `std::sync::mpsc::Sender<()>`
1919 = note: required because of the requirements on the impl of `std::marker::Send` for `&std::sync::mpsc::Sender<()>`
You can’t perform that action at this time.
0 commit comments