]>
Commit | Line | Data |
---|---|---|
e1599b0c | 1 | error: lifetime may not live long enough |
04454e1e | 2 | --> $DIR/ref-mut-self-async.rs:16:9 |
e74abb32 XL |
3 | | |
4 | LL | async fn ref_self(&mut self, f: &u32) -> &u32 { | |
60c5eb7d | 5 | | - - let's call the lifetime of this reference `'1` |
e74abb32 | 6 | | | |
60c5eb7d | 7 | | let's call the lifetime of this reference `'2` |
e74abb32 | 8 | LL | f |
ba9703b0 | 9 | | ^ associated function was supposed to return data with lifetime `'2` but it is returning data with lifetime `'1` |
e1599b0c XL |
10 | |
11 | error: lifetime may not live long enough | |
04454e1e | 12 | --> $DIR/ref-mut-self-async.rs:24:9 |
e74abb32 XL |
13 | | |
14 | LL | async fn ref_Self(self: &mut Self, f: &u32) -> &u32 { | |
60c5eb7d | 15 | | - - let's call the lifetime of this reference `'1` |
e74abb32 | 16 | | | |
60c5eb7d | 17 | | let's call the lifetime of this reference `'2` |
e74abb32 | 18 | LL | f |
ba9703b0 | 19 | | ^ associated function was supposed to return data with lifetime `'2` but it is returning data with lifetime `'1` |
e1599b0c XL |
20 | |
21 | error: lifetime may not live long enough | |
04454e1e | 22 | --> $DIR/ref-mut-self-async.rs:30:9 |
e74abb32 XL |
23 | | |
24 | LL | async fn box_ref_Self(self: Box<&mut Self>, f: &u32) -> &u32 { | |
60c5eb7d | 25 | | - - let's call the lifetime of this reference `'1` |
e74abb32 | 26 | | | |
60c5eb7d | 27 | | let's call the lifetime of this reference `'2` |
e74abb32 | 28 | LL | f |
ba9703b0 | 29 | | ^ associated function was supposed to return data with lifetime `'2` but it is returning data with lifetime `'1` |
e1599b0c XL |
30 | |
31 | error: lifetime may not live long enough | |
04454e1e | 32 | --> $DIR/ref-mut-self-async.rs:36:9 |
e74abb32 XL |
33 | | |
34 | LL | async fn pin_ref_Self(self: Pin<&mut Self>, f: &u32) -> &u32 { | |
60c5eb7d | 35 | | - - let's call the lifetime of this reference `'1` |
e74abb32 | 36 | | | |
60c5eb7d | 37 | | let's call the lifetime of this reference `'2` |
e74abb32 | 38 | LL | f |
ba9703b0 | 39 | | ^ associated function was supposed to return data with lifetime `'2` but it is returning data with lifetime `'1` |
e1599b0c XL |
40 | |
41 | error: lifetime may not live long enough | |
04454e1e | 42 | --> $DIR/ref-mut-self-async.rs:42:9 |
e74abb32 XL |
43 | | |
44 | LL | async fn box_box_ref_Self(self: Box<Box<&mut Self>>, f: &u32) -> &u32 { | |
60c5eb7d | 45 | | - - let's call the lifetime of this reference `'1` |
e74abb32 | 46 | | | |
60c5eb7d | 47 | | let's call the lifetime of this reference `'2` |
e74abb32 | 48 | LL | f |
ba9703b0 | 49 | | ^ associated function was supposed to return data with lifetime `'2` but it is returning data with lifetime `'1` |
e1599b0c XL |
50 | |
51 | error: lifetime may not live long enough | |
04454e1e | 52 | --> $DIR/ref-mut-self-async.rs:48:9 |
e74abb32 XL |
53 | | |
54 | LL | async fn box_pin_ref_Self(self: Box<Pin<&mut Self>>, f: &u32) -> &u32 { | |
60c5eb7d | 55 | | - - let's call the lifetime of this reference `'1` |
e74abb32 | 56 | | | |
60c5eb7d | 57 | | let's call the lifetime of this reference `'2` |
e74abb32 | 58 | LL | f |
ba9703b0 | 59 | | ^ associated function was supposed to return data with lifetime `'2` but it is returning data with lifetime `'1` |
e1599b0c | 60 | |
74b04a01 | 61 | error: aborting due to 6 previous errors |
e1599b0c | 62 |