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 `async fn` implicitly returns an `impl Future<Output = &u32>`
8 | this parameter and the returned future are declared with different lifetimes...
10 | ^ ...but data from `f` is held across an await point here
12 error[E0623]: lifetime mismatch
13 --> $DIR/ref-struct-async.rs:17:9
15 LL | async fn box_ref_Struct(self: Box<&Struct>, f: &u32) -> &u32 {
18 | | this `async fn` implicitly returns an `impl Future<Output = &u32>`
19 | this parameter and the returned future are declared with different lifetimes...
21 | ^ ...but data from `f` is held across an await point here
23 error[E0623]: lifetime mismatch
24 --> $DIR/ref-struct-async.rs:21:9
26 LL | async fn pin_ref_Struct(self: Pin<&Struct>, f: &u32) -> &u32 {
29 | | this `async fn` implicitly returns an `impl Future<Output = &u32>`
30 | this parameter and the returned future are declared with different lifetimes...
32 | ^ ...but data from `f` is held across an await point here
34 error[E0623]: lifetime mismatch
35 --> $DIR/ref-struct-async.rs:25:9
37 LL | async fn box_box_ref_Struct(self: Box<Box<&Struct>>, f: &u32) -> &u32 {
40 | | this `async fn` implicitly returns an `impl Future<Output = &u32>`
41 | this parameter and the returned future are declared with different lifetimes...
43 | ^ ...but data from `f` is held across an await point here
45 error[E0623]: lifetime mismatch
46 --> $DIR/ref-struct-async.rs:29:9
48 LL | async fn box_pin_Struct(self: Box<Pin<&Struct>>, f: &u32) -> &u32 {
51 | | this `async fn` implicitly returns an `impl Future<Output = &u32>`
52 | this parameter and the returned future are declared with different lifetimes...
54 | ^ ...but data from `f` is held across an await point here
56 error: aborting due to 5 previous errors
58 For more information about this error, try `rustc --explain E0623`.