1 // error-pattern:generator resumed after panicking
3 // Test that we get the correct message for resuming a panicked generator.
5 #![feature(generators, generator_trait)]
18 panic::catch_unwind(panic::AssertUnwindSafe(|| {
19 let x = Pin::new(&mut g).resume();
21 Pin::new(&mut g).resume();