Sign in
rust
/
rust
/
refs/heads/try-perf
/
.
/
tests
/
ui
/
coroutine
/
pin-box-coroutine.rs
blob: d9674ed7341bec9a498a4021bfa38d6889ca4072 [
file
] [
log
] [
blame
] [
edit
]
//@ run-pass
#![
feature
(
coroutines
,
coroutine_trait
)]
use
std
::
ops
::
Coroutine
;
fn
assert_coroutine
<
G
:
Coroutine
>(
_
:
G
)
{
}
fn
main
()
{
assert_coroutine
(#[
coroutine
]
static
||
yield
);
assert_coroutine
(
Box
::
pin
(#[
coroutine
]
static
||
yield
));
}