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