2 #![allow(unused_must_use)]
3 // ignore-emscripten no threads support
4 // pretty-expanded FIXME #23616
6 use std::sync::mpsc::{channel, Sender};
9 fn start(tx: &Sender<isize>, i0: isize) {
18 // Spawn a thread that sends us back messages. The parent thread
19 // is likely to terminate before the child completes, so from
20 // the child's point of view the receiver may die. We should
21 // drop messages on the floor in this case, and not crash!
22 let (tx, rx) = channel();
23 let t = thread::spawn(move|| {