2 #![allow(unused_must_use)]
4 // ignore-emscripten no threads support
6 use std::sync::mpsc::{TryRecvError, channel};
10 let (tx, rx) = channel();
11 let t = thread::spawn(move||{
18 Err(TryRecvError::Empty) => {}
19 Err(TryRecvError::Disconnected) => unreachable!()