Sign in
fuchsia
/
third_party
/
github.com
/
rust-lang
/
rust
/
5f62a35bae82dd0c5ff9dedd83fe2cfd74b67792
/
.
/
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
}