]>
Commit | Line | Data |
---|---|---|
48663c56 | 1 | error: lifetime may not live long enough |
923072b8 | 2 | --> $DIR/wf-static-method.rs:17:9 |
48663c56 XL |
3 | | |
4 | LL | impl<'a, 'b> Foo<'a, 'b, Evil<'a, 'b>> for () { | |
5 | | -- -- lifetime `'b` defined here | |
6 | | | | |
7 | | lifetime `'a` defined here | |
8 | ... | |
9 | LL | u | |
5099ac24 | 10 | | ^ associated function was supposed to return data with lifetime `'a` but it is returning data with lifetime `'b` |
60c5eb7d XL |
11 | | |
12 | = help: consider adding the following bound: `'b: 'a` | |
48663c56 XL |
13 | |
14 | error: lifetime may not live long enough | |
923072b8 | 15 | --> $DIR/wf-static-method.rs:27:18 |
48663c56 XL |
16 | | |
17 | LL | impl<'a, 'b> Foo<'a, 'b, ()> for IndirectEvil<'a, 'b> { | |
18 | | -- -- lifetime `'b` defined here | |
19 | | | | |
20 | | lifetime `'a` defined here | |
21 | ... | |
22 | LL | let me = Self::make_me(); | |
23 | | ^^^^^^^^^^^^^ requires that `'b` must outlive `'a` | |
60c5eb7d XL |
24 | | |
25 | = help: consider adding the following bound: `'b: 'a` | |
48663c56 XL |
26 | |
27 | error: lifetime may not live long enough | |
923072b8 | 28 | --> $DIR/wf-static-method.rs:35:9 |
48663c56 XL |
29 | | |
30 | LL | impl<'a, 'b> Evil<'a, 'b> { | |
31 | | -- -- lifetime `'b` defined here | |
32 | | | | |
33 | | lifetime `'a` defined here | |
34 | LL | fn inherent_evil(u: &'b u32) -> &'a u32 { | |
35 | LL | u | |
5099ac24 | 36 | | ^ associated function was supposed to return data with lifetime `'a` but it is returning data with lifetime `'b` |
60c5eb7d XL |
37 | | |
38 | = help: consider adding the following bound: `'b: 'a` | |
48663c56 XL |
39 | |
40 | error: lifetime may not live long enough | |
923072b8 | 41 | --> $DIR/wf-static-method.rs:44:5 |
48663c56 XL |
42 | | |
43 | LL | fn evil<'a, 'b>(b: &'b u32) -> &'a u32 { | |
44 | | -- -- lifetime `'b` defined here | |
45 | | | | |
46 | | lifetime `'a` defined here | |
47 | LL | <()>::static_evil(b) | |
5099ac24 | 48 | | ^^^^^^^^^^^^^^^^^^^^ function was supposed to return data with lifetime `'a` but it is returning data with lifetime `'b` |
60c5eb7d XL |
49 | | |
50 | = help: consider adding the following bound: `'b: 'a` | |
48663c56 XL |
51 | |
52 | error: lifetime may not live long enough | |
923072b8 | 53 | --> $DIR/wf-static-method.rs:49:5 |
48663c56 XL |
54 | | |
55 | LL | fn indirect_evil<'a, 'b>(b: &'b u32) -> &'a u32 { | |
56 | | -- -- lifetime `'b` defined here | |
57 | | | | |
58 | | lifetime `'a` defined here | |
59 | LL | <IndirectEvil>::static_evil(b) | |
5099ac24 | 60 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function was supposed to return data with lifetime `'a` but it is returning data with lifetime `'b` |
60c5eb7d XL |
61 | | |
62 | = help: consider adding the following bound: `'b: 'a` | |
48663c56 XL |
63 | |
64 | error: lifetime may not live long enough | |
923072b8 | 65 | --> $DIR/wf-static-method.rs:54:5 |
48663c56 XL |
66 | | |
67 | LL | fn inherent_evil<'a, 'b>(b: &'b u32) -> &'a u32 { | |
68 | | -- -- lifetime `'b` defined here | |
69 | | | | |
70 | | lifetime `'a` defined here | |
17df50a5 | 71 | LL | <Evil>::inherent_evil(b) |
5099ac24 | 72 | | ^^^^^^^^^^^^^^^^^^^^^^^^ function was supposed to return data with lifetime `'a` but it is returning data with lifetime `'b` |
60c5eb7d XL |
73 | | |
74 | = help: consider adding the following bound: `'b: 'a` | |
48663c56 XL |
75 | |
76 | error: aborting due to 6 previous errors | |
77 |