about summary refs log tree commit diff
path: root/tests/ui/coroutine/yield-outside-coroutine-issue-78653.rs
blob: 6833bc990121230f5b2814ae6292d524622cf661 (plain)
1
2
3
4
5
6
7
8
#![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
}