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);
14 //~^ ERROR assign to part of possibly uninitialized variable: `t` [E0381]
20 async fn test_tuple_struct() {
23 //~^ ERROR assign to part of possibly uninitialized variable: `t` [E0381]
29 async fn test_struct() {
32 //~^ ERROR assign to part of possibly uninitialized variable: `t` [E0381]
40 let _ = test_tuple_struct();
41 let _ = test_struct();