2023-10-16 12:36:39 -05:00
|
|
|
// skip-filecheck
|
2023-10-19 16:46:28 -05:00
|
|
|
#![feature(coroutines, coroutine_trait)]
|
2019-03-03 13:27:41 -06:00
|
|
|
|
2023-06-08 02:18:34 -05:00
|
|
|
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
|
2020-03-25 16:07:41 -05:00
|
|
|
|
2023-10-19 16:46:28 -05:00
|
|
|
// Regression test for #58892, coroutine drop shims should not have blocks
|
2019-03-03 13:27:41 -06:00
|
|
|
// spuriously marked as cleanup
|
|
|
|
|
2023-10-19 16:46:28 -05:00
|
|
|
// EMIT_MIR coroutine_drop_cleanup.main-{closure#0}.coroutine_drop.0.mir
|
2019-03-03 13:27:41 -06:00
|
|
|
fn main() {
|
|
|
|
let gen = || {
|
2020-03-14 20:28:48 -05:00
|
|
|
let _s = String::new();
|
2019-03-03 13:27:41 -06:00
|
|
|
yield;
|
|
|
|
};
|
|
|
|
}
|