3 #![allow(non_snake_case)]
10 // Test using `&Struct` explicitly:
12 async fn ref_Struct(self: &Struct, f: &u32) -> &u32 {
13 f //~ ERROR lifetime mismatch
16 async fn box_ref_Struct(self: Box<&Struct>, f: &u32) -> &u32 {
17 f //~ ERROR lifetime mismatch
20 async fn pin_ref_Struct(self: Pin<&Struct>, f: &u32) -> &u32 {
21 f //~ ERROR lifetime mismatch
24 async fn box_box_ref_Struct(self: Box<Box<&Struct>>, f: &u32) -> &u32 {
25 f //~ ERROR lifetime mismatch
28 async fn box_pin_Struct(self: Box<Pin<&Struct>>, f: &u32) -> &u32 {
29 f //~ ERROR lifetime mismatch