1 // Test that we don't allow yielding from a generator while a local is partially
4 #![feature(generators)]
6 struct S { x: i32, y: i32 }
11 let mut t: (i32, i32);
12 t.0 = 42; //~ ERROR E0381
19 fn test_tuple_struct() {
22 t.0 = 42; //~ ERROR E0381
32 t.x = 42; //~ ERROR E0381