Sign in
rust
/
rust-lang
/
rust
/
HEAD
/
.
/
tests
/
ui
/
coroutine
/
yield-in-args.rs
blob: bc9909b310c3fae3e3c26c388f093574cb755cba [
file
] [
log
] [
blame
]
#![
feature
(
coroutines
)]
fn
foo
(
_b
:
&
bool
,
_a
:
())
{}
fn
main
()
{
#[
coroutine
]
||
{
let
b
=
true
;
foo
(&
b
,
yield
);
//~ ERROR
};
}