// run-pass// needs-unwind// Checks that nested panics work correctly.usestd::panic::catch_unwind;fndouble(){structDouble;implDropforDouble{fndrop(&mutself){let_=catch_unwind(||panic!("twice"));}}let_d=Double;panic!("once");}fnmain(){assert!(catch_unwind(||double()).is_err());}