rust/tests/ui/coroutine/auxiliary/unwind-aux.rs
2024-02-16 20:02:50 +00:00

12 lines
201 B
Rust

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