rustc/tests/ui/coroutine/auxiliary/unwind-aux.rs
2024-06-04 21:09:03 +02:00

12 lines
198 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;
};
}