aef0f4024a
And suggest adding the `#[coroutine]` to the closure
13 lines
240 B
Rust
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;
|
|
};
|
|
}
|