1 error: lifetime may not live long enough
2 --> $DIR/ref-mut-struct-async.rs:13:9
4 LL | async fn ref_Struct(self: &mut Struct, f: &u32) -> &u32 {
5 | - - let's call the lifetime of this reference `'1`
7 | let's call the lifetime of this reference `'2`
9 | ^ associated function was supposed to return data with lifetime `'2` but it is returning data with lifetime `'1`
11 error: lifetime may not live long enough
12 --> $DIR/ref-mut-struct-async.rs:17:9
14 LL | async fn box_ref_Struct(self: Box<&mut Struct>, f: &u32) -> &u32 {
15 | - - let's call the lifetime of this reference `'1`
17 | let's call the lifetime of this reference `'2`
19 | ^ associated function was supposed to return data with lifetime `'2` but it is returning data with lifetime `'1`
21 error: lifetime may not live long enough
22 --> $DIR/ref-mut-struct-async.rs:21:9
24 LL | async fn pin_ref_Struct(self: Pin<&mut Struct>, f: &u32) -> &u32 {
25 | - - let's call the lifetime of this reference `'1`
27 | let's call the lifetime of this reference `'2`
29 | ^ associated function was supposed to return data with lifetime `'2` but it is returning data with lifetime `'1`
31 error: lifetime may not live long enough
32 --> $DIR/ref-mut-struct-async.rs:25:9
34 LL | async fn box_box_ref_Struct(self: Box<Box<&mut Struct>>, f: &u32) -> &u32 {
35 | - - let's call the lifetime of this reference `'1`
37 | let's call the lifetime of this reference `'2`
39 | ^ associated function was supposed to return data with lifetime `'2` but it is returning data with lifetime `'1`
41 error: lifetime may not live long enough
42 --> $DIR/ref-mut-struct-async.rs:29:9
44 LL | async fn box_pin_ref_Struct(self: Box<Pin<&mut Struct>>, f: &u32) -> &u32 {
45 | - - let's call the lifetime of this reference `'1`
47 | let's call the lifetime of this reference `'2`
49 | ^ associated function was supposed to return data with lifetime `'2` but it is returning data with lifetime `'1`
51 error: aborting due to 5 previous errors