1 error[E0623]: lifetime mismatch
2 --> $DIR/ref-struct-async.rs:13:9
4 LL | async fn ref_Struct(self: &Struct, f: &u32) -> &u32 {
7 | this parameter and the return type are declared with different lifetimes...
9 | ^ ...but data from `f` is returned here
11 error[E0623]: lifetime mismatch
12 --> $DIR/ref-struct-async.rs:17:9
14 LL | async fn box_ref_Struct(self: Box<&Struct>, f: &u32) -> &u32 {
17 | this parameter and the return type are declared with different lifetimes...
19 | ^ ...but data from `f` is returned here
21 error[E0623]: lifetime mismatch
22 --> $DIR/ref-struct-async.rs:21:9
24 LL | async fn pin_ref_Struct(self: Pin<&Struct>, f: &u32) -> &u32 {
27 | this parameter and the return type are declared with different lifetimes...
29 | ^ ...but data from `f` is returned here
31 error[E0623]: lifetime mismatch
32 --> $DIR/ref-struct-async.rs:25:9
34 LL | async fn box_box_ref_Struct(self: Box<Box<&Struct>>, f: &u32) -> &u32 {
37 | this parameter and the return type are declared with different lifetimes...
39 | ^ ...but data from `f` is returned here
41 error[E0623]: lifetime mismatch
42 --> $DIR/ref-struct-async.rs:29:9
44 LL | async fn box_pin_Struct(self: Box<Pin<&Struct>>, f: &u32) -> &u32 {
47 | this parameter and the return type are declared with different lifetimes...
49 | ^ ...but data from `f` is returned here
51 error: aborting due to 5 previous errors
53 For more information about this error, try `rustc --explain E0623`.