rust/tests/ui/generator/yield-outside-generator-issue-78653.rs
2023-01-11 09:32:08 +00:00

8 lines
174 B
Rust

#![feature(generators)]
fn main() {
yield || for i in 0 { }
//~^ ERROR yield expression outside of generator literal
//~| ERROR `{integer}` is not an iterator
}