2 #![allow(unused_must_use)]
3 // ignore-emscripten no threads support
6 use std::sync::mpsc::{channel, Sender};
9 let (tx, rx) = channel();
10 let t = thread::spawn(move|| { child(&tx) });
11 let y = rx.recv().unwrap();
18 fn child(c: &Sender<isize>) {
21 println!("value sent");