about summary refs log tree commit diff
path: root/tests/ui/coroutine/auxiliary/unwind-aux.rs
blob: 5d5e5c2218d3921543f2ffb7bb4c6249d1a03ea0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
//@ 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;
    };
}