3 #![allow(stable_features)]
4 #![allow(unused_must_use)]
6 // ignore-emscripten no threads support
14 panic::set_hook(Box::new(|_| println!("hello yes this is a")));
16 panic::set_hook(Box::new(|_| println!("hello yes this is a part 2")));
30 panic::set_hook(Box::new(|_| ()));
31 panic::set_hook(Box::new(|_| ()));
32 panic::set_hook(Box::new(|_| ()));
33 panic::set_hook(Box::new(|_| ()));
34 panic::set_hook(Box::new(|_| ()));
35 panic::set_hook(Box::new(|_| ()));
41 let mut handles = vec![];
43 handles.push(thread::spawn(a));
46 handles.push(thread::spawn(b));
49 handles.push(thread::spawn(c));
51 for handle in handles {
52 let _ = handle.join();