Sign in
rust
/
rust
/
refs/heads/beta
/
.
/
tests
/
ui
/
coroutine
/
yield-outside-coroutine-issue-78653.rs
blob: 6833bc990121230f5b2814ae6292d524622cf661 [
file
] [
log
] [
blame
]
#![
feature
(
coroutines
)]
fn
main
()
{
yield
||
for
i in
0
{
}
//~^ ERROR yield expression outside of coroutine literal
//~| ERROR `{integer}` is not an iterator
//~| ERROR `yield` can only be used in
}