blob: 82c1292cbd05c603f0116cb962687acb4a6b7532 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#![feature(generators, generator_trait)]
// ignore-wasm32-bare compiled with panic=abort by default
// Regression test for #58892, generator drop shims should not have blocks
// spuriously marked as cleanup
// EMIT_MIR generator_drop_cleanup.main-{closure#0}.generator_drop.0.mir
fn main() {
let gen = || {
let _s = String::new();
yield;
};
}
|