3 // error-pattern:generator resumed after panicking
4 // ignore-emscripten no processes
6 // Test that we get the correct message for resuming a panicked generator.
8 #![feature(generators, generator_trait)]
21 panic::catch_unwind(panic::AssertUnwindSafe(|| {
22 let x = Pin::new(&mut g).resume(());
24 Pin::new(&mut g).resume(());