1 error: lifetime may not live long enough
2 --> $DIR/ref-mut-self-async.rs:13:9
4 LL | async fn ref_self(&mut self, 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 help: consider introducing a named lifetime parameter and update trait if needed
13 LL | async fn ref_self<'a>(&'a mut self, f: &'a u32) -> &u32 {
16 error: lifetime may not live long enough
17 --> $DIR/ref-mut-self-async.rs:20:9
19 LL | async fn ref_Self(self: &mut Self, f: &u32) -> &u32 {
20 | - - let's call the lifetime of this reference `'1`
22 | let's call the lifetime of this reference `'2`
24 | ^ associated function was supposed to return data with lifetime `'2` but it is returning data with lifetime `'1`
26 help: consider introducing a named lifetime parameter and update trait if needed
28 LL | async fn ref_Self<'a>(self: &'a mut Self, f: &'a u32) -> &u32 {
31 error: lifetime may not live long enough
32 --> $DIR/ref-mut-self-async.rs:25:9
34 LL | async fn box_ref_Self(self: Box<&mut Self>, 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 help: consider introducing a named lifetime parameter and update trait if needed
43 LL | async fn box_ref_Self<'a>(self: Box<&'a mut Self>, f: &'a u32) -> &u32 {
46 error: lifetime may not live long enough
47 --> $DIR/ref-mut-self-async.rs:30:9
49 LL | async fn pin_ref_Self(self: Pin<&mut Self>, f: &u32) -> &u32 {
50 | - - let's call the lifetime of this reference `'1`
52 | let's call the lifetime of this reference `'2`
54 | ^ associated function was supposed to return data with lifetime `'2` but it is returning data with lifetime `'1`
56 help: consider introducing a named lifetime parameter and update trait if needed
58 LL | async fn pin_ref_Self<'a>(self: Pin<&'a mut Self>, f: &'a u32) -> &u32 {
61 error: lifetime may not live long enough
62 --> $DIR/ref-mut-self-async.rs:35:9
64 LL | async fn box_box_ref_Self(self: Box<Box<&mut Self>>, f: &u32) -> &u32 {
65 | - - let's call the lifetime of this reference `'1`
67 | let's call the lifetime of this reference `'2`
69 | ^ associated function was supposed to return data with lifetime `'2` but it is returning data with lifetime `'1`
71 help: consider introducing a named lifetime parameter and update trait if needed
73 LL | async fn box_box_ref_Self<'a>(self: Box<Box<&'a mut Self>>, f: &'a u32) -> &u32 {
76 error: lifetime may not live long enough
77 --> $DIR/ref-mut-self-async.rs:40:9
79 LL | async fn box_pin_ref_Self(self: Box<Pin<&mut Self>>, f: &u32) -> &u32 {
80 | - - let's call the lifetime of this reference `'1`
82 | let's call the lifetime of this reference `'2`
84 | ^ associated function was supposed to return data with lifetime `'2` but it is returning data with lifetime `'1`
86 help: consider introducing a named lifetime parameter and update trait if needed
88 LL | async fn box_pin_ref_Self<'a>(self: Box<Pin<&'a mut Self>>, f: &'a u32) -> &u32 {
91 error: aborting due to 6 previous errors