]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/closures/closure-move-sync.rs
2 use std
::sync
::mpsc
::channel
;
5 let (send
, recv
) = channel();
6 let t
= thread
::spawn(|| {
8 //~^^ ERROR `std::sync::mpsc::Receiver<()>` cannot be shared between threads safely
17 let (tx
, _rx
) = channel();
18 thread
::spawn(|| tx
.send(()).unwrap());
19 //~^ ERROR `Sender<()>` cannot be shared between threads safely