3 // ignore-emscripten no threads support
5 // Make sure the destructor is run for unit-like structs.
13 panic!("This panic should happen.");
18 let x = thread::spawn(move|| {
22 let s = x.unwrap_err().downcast::<&'static str>().unwrap();
23 assert_eq!(&**s, "This panic should happen.");