rust/tests/ui/coroutine/yield-in-function.rs

6 lines
121 B
Rust

#![feature(coroutines)]
fn main() { yield; }
//~^ ERROR yield expression outside
//~| ERROR `yield` can only be used in