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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
240 B
Rust
Raw Normal View History

//@ 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;
};
}