4 // ignore-wasm32-bare compiled with panic=abort by default
6 #![feature(generators, generator_trait)]
8 use std::ops::Generator;
20 let res = panic::catch_unwind(panic::AssertUnwindSafe(|| {
21 Pin::new(&mut foo).resume(())
23 assert!(res.is_err());
26 let res = panic::catch_unwind(panic::AssertUnwindSafe(|| {
27 Pin::new(&mut foo).resume(())
29 assert!(res.is_err());