Sign in
rust
/
rust
/
HEAD
/
.
/
tests
/
ui
/
coroutine
/
auxiliary
/
metadata-sufficient-for-layout.rs
blob: 8ecb8c0c09793e80791ba9ce8dcd2ef93d622229 [
file
] [
log
] [
blame
]
//@ compile-flags: --emit metadata
#![
feature
(
coroutines
,
coroutine_trait
)]
use
std
::
marker
::
Unpin
;
use
std
::
ops
::
Coroutine
;
pub
fn
g
()
->
impl
Coroutine
<(),
Yield
=
(),
Return
=
()>
{
#[
coroutine
]
||
{
yield
;
}
}