blob: 0d898d014e80bfa48523ae1072d8f04d94fbaf5d (
plain)
1
2
3
4
5
6
7
8
9
10
|
// Regression test for #64620
#![feature(coroutines)]
pub fn crash(arr: [usize; 1]) {
yield arr[0]; //~ ERROR: yield expression outside of coroutine literal
//~^ ERROR: `yield` can only be used in
}
fn main() {}
|