rust/tests/ui/coroutine/auxiliary/unwind-aux.rs

13 lines
240 B
Rust

//@ compile-flags: -Cpanic=unwind --crate-type=lib
//@ no-prefer-dynamic
//@ edition:2021
#![feature(coroutines, stmt_expr_attributes)]
pub fn run<T>(a: T) {
let _ = #[coroutine]
move || {
drop(a);
yield;
};
}