1 // run-pass 2 // ignore-emscripten no threads support 3 4 use std::thread; 5 f()6 fn f() { 7 let _a: Box<_> = Box::new(0); 8 panic!(); 9 } 10 main()11 pub fn main() { 12 let t = thread::spawn(f); 13 drop(t.join()); 14 } 15