]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/closures/closure-move-sync.rs
1 // FIXME: missing sysroot spans (#53081)
2 // ignore-i586-unknown-linux-gnu
3 // ignore-i586-unknown-linux-musl
4 // ignore-i686-unknown-linux-musl
6 use std
::sync
::mpsc
::channel
;
9 let (send
, recv
) = channel();
10 let t
= thread
::spawn(|| {
12 //~^^ ERROR `std::sync::mpsc::Receiver<()>` cannot be shared between threads safely
21 let (tx
, _rx
) = channel();
22 thread
::spawn(|| tx
.send(()).unwrap());
23 //~^ ERROR `std::sync::mpsc::Sender<()>` cannot be shared between threads safely