1 // Test that we don't allow awaiting from an async fn while a local is partially
6 struct S { x: i32, y: i32 }
11 async fn test_tuple() {
12 let mut t: (i32, i32);
13 t.0 = 42; //~ ERROR E0381
19 async fn test_tuple_struct() {
21 t.0 = 42; //~ ERROR E0381
27 async fn test_struct() {
29 t.x = 42; //~ ERROR E0381
37 let _ = test_tuple_struct();
38 let _ = test_struct();