mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 16:24:46 +00:00
15 lines
347 B
Rust
15 lines
347 B
Rust
#![feature(generators, generator_trait)]
|
|
|
|
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
|
|
|
|
// 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;
|
|
};
|
|
}
|