3 // ignore-wasm32-bare compiled with panic=abort by default
5 #![feature(generators, generator_trait)]
7 use std::ops::Generator;
19 let res = panic::catch_unwind(panic::AssertUnwindSafe(|| {
20 Pin::new(&mut foo).resume()
22 assert!(res.is_err());
25 let res = panic::catch_unwind(panic::AssertUnwindSafe(|| {
26 Pin::new(&mut foo).resume()
28 assert!(res.is_err());