1 error: lifetime may not live long enough
2 --> $DIR/wf-static-method.rs:17:9
4 LL | impl<'a, 'b> Foo<'a, 'b, Evil<'a, 'b>> for () {
5 | -- -- lifetime `'b` defined here
7 | lifetime `'a` defined here
10 | ^ associated function was supposed to return data with lifetime `'a` but it is returning data with lifetime `'b`
12 = help: consider adding the following bound: `'b: 'a`
14 error: lifetime may not live long enough
15 --> $DIR/wf-static-method.rs:26:18
17 LL | impl<'a, 'b> Foo<'a, 'b, ()> for IndirectEvil<'a, 'b> {
18 | -- -- lifetime `'b` defined here
20 | lifetime `'a` defined here
22 LL | let me = Self::make_me();
23 | ^^^^^^^^^^^^^ requires that `'b` must outlive `'a`
25 = help: consider adding the following bound: `'b: 'a`
27 error: lifetime may not live long enough
28 --> $DIR/wf-static-method.rs:33:9
30 LL | impl<'a, 'b> Evil<'a, 'b> {
31 | -- -- lifetime `'b` defined here
33 | lifetime `'a` defined here
34 LL | fn inherent_evil(u: &'b u32) -> &'a u32 {
36 | ^ associated function was supposed to return data with lifetime `'a` but it is returning data with lifetime `'b`
38 = help: consider adding the following bound: `'b: 'a`
40 error: lifetime may not live long enough
41 --> $DIR/wf-static-method.rs:41:5
43 LL | fn evil<'a, 'b>(b: &'b u32) -> &'a u32 {
44 | -- -- lifetime `'b` defined here
46 | lifetime `'a` defined here
47 LL | <()>::static_evil(b)
48 | ^^^^^^^^^^^^^^^^^^^^ function was supposed to return data with lifetime `'a` but it is returning data with lifetime `'b`
50 = help: consider adding the following bound: `'b: 'a`
52 error: lifetime may not live long enough
53 --> $DIR/wf-static-method.rs:45:5
55 LL | fn indirect_evil<'a, 'b>(b: &'b u32) -> &'a u32 {
56 | -- -- lifetime `'b` defined here
58 | lifetime `'a` defined here
59 LL | <IndirectEvil>::static_evil(b)
60 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function was supposed to return data with lifetime `'a` but it is returning data with lifetime `'b`
62 = help: consider adding the following bound: `'b: 'a`
64 error: lifetime may not live long enough
65 --> $DIR/wf-static-method.rs:50:5
67 LL | fn inherent_evil<'a, 'b>(b: &'b u32) -> &'a u32 {
68 | -- -- lifetime `'b` defined here
70 | lifetime `'a` defined here
71 LL | <Evil>::inherent_evil(b)
72 | ^^^^^^^^^^^^^^^^^^^^^^^^ function was supposed to return data with lifetime `'a` but it is returning data with lifetime `'b`
74 = help: consider adding the following bound: `'b: 'a`
76 error: aborting due to 6 previous errors