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