]>
Commit | Line | Data |
---|---|---|
dc9dc135 | 1 | error: lifetime may not live long enough |
60c5eb7d | 2 | --> $DIR/lt-ref-self.rs:11:9 |
dc9dc135 XL |
3 | | |
4 | LL | 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 | |
74b04a01 | 9 | | ^ method was supposed to return data with lifetime `'2` but it is returning data with lifetime `'1` |
dc9dc135 XL |
10 | |
11 | error: lifetime may not live long enough | |
60c5eb7d | 12 | --> $DIR/lt-ref-self.rs:17:9 |
dc9dc135 XL |
13 | | |
14 | LL | 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 | |
74b04a01 | 19 | | ^ method was supposed to return data with lifetime `'2` but it is returning data with lifetime `'1` |
dc9dc135 XL |
20 | |
21 | error: lifetime may not live long enough | |
60c5eb7d | 22 | --> $DIR/lt-ref-self.rs:21:9 |
dc9dc135 XL |
23 | | |
24 | LL | 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 | |
74b04a01 | 29 | | ^ method was supposed to return data with lifetime `'2` but it is returning data with lifetime `'1` |
dc9dc135 XL |
30 | |
31 | error: lifetime may not live long enough | |
60c5eb7d | 32 | --> $DIR/lt-ref-self.rs:25:9 |
dc9dc135 XL |
33 | | |
34 | LL | 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 | |
74b04a01 | 39 | | ^ method was supposed to return data with lifetime `'2` but it is returning data with lifetime `'1` |
dc9dc135 XL |
40 | |
41 | error: lifetime may not live long enough | |
60c5eb7d | 42 | --> $DIR/lt-ref-self.rs:29:9 |
dc9dc135 XL |
43 | | |
44 | LL | 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 | |
74b04a01 | 49 | | ^ method was supposed to return data with lifetime `'2` but it is returning data with lifetime `'1` |
dc9dc135 XL |
50 | |
51 | error: lifetime may not live long enough | |
60c5eb7d | 52 | --> $DIR/lt-ref-self.rs:33:9 |
dc9dc135 XL |
53 | | |
54 | LL | fn box_pin_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 | |
74b04a01 | 59 | | ^ method was supposed to return data with lifetime `'2` but it is returning data with lifetime `'1` |
dc9dc135 XL |
60 | |
61 | error: aborting due to 6 previous errors | |
62 |