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