1 2 3 4 5 6 7 8 9
// Regression test for #64620 #![feature(coroutines)] pub fn crash(arr: [usize; 1]) { yield arr[0]; //~ ERROR: yield expression outside of coroutine literal } fn main() {}