//! Check that the unwind machinery handles uninhabited types correctly. //! It used to call `std::mem::uninitialized::();` at some point... //! //! See //@ run-pass //@ needs-unwind fn worker() -> ! { panic!() } fn main() { std::panic::catch_unwind(worker).unwrap_err(); }