2 #![allow(unused_must_use)]
3 // ignore-emscripten no threads support
5 // This test may not always fail, but it can be flaky if the race it used to
6 // expose is still present.
8 #![feature(mpsc_select)]
11 use std::sync::mpsc::{channel, Sender, Receiver};
14 fn helper(rx: Receiver<Sender<()>>) {
21 let (tx, rx) = channel();
22 let t = thread::spawn(move|| { helper(rx) });
23 let (snd, rcv) = channel::<isize>();
26 let (tx2, rx2) = channel();
27 tx.send(tx2).unwrap();