Sign in
rust
/
rust-lang
/
rust
/
HEAD
/
.
/
tests
/
ui
/
coroutine
/
auxiliary
/
unwind-aux.rs
blob: 5d5e5c2218d3921543f2ffb7bb4c6249d1a03ea0 [
file
] [
log
] [
blame
]
//@ 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
;
};
}