1 //! Tests that generators that cannot return or unwind don't have unnecessary
4 // compile-flags: -Zno-landing-pads
6 #![feature(generators, generator_trait)]
10 impl Drop for HasDrop {
28 // START rustc.main-{{closure}}.generator_resume.0.mir
31 // switchInt(move _11) -> [0u32: bb1, 3u32: bb5, otherwise: bb6];
34 // END rustc.main-{{closure}}.generator_resume.0.mir