1 error[E0312]: lifetime of reference outlives lifetime of borrowed content...
2 --> $DIR/wf-static-method.rs:27:9
7 note: ...the reference is valid for the lifetime 'a as defined on the impl at 24:6...
8 --> $DIR/wf-static-method.rs:24:6
10 LL | impl<'a, 'b> Foo<'a, 'b, Evil<'a, 'b>> for () {
12 note: ...but the borrowed content is only valid for the lifetime 'b as defined on the impl at 24:10
13 --> $DIR/wf-static-method.rs:24:10
15 LL | impl<'a, 'b> Foo<'a, 'b, Evil<'a, 'b>> for () {
18 error[E0478]: lifetime bound not satisfied
19 --> $DIR/wf-static-method.rs:36:18
21 LL | let me = Self::make_me(); //~ ERROR lifetime bound not satisfied
24 note: lifetime parameter instantiated with the lifetime 'b as defined on the impl at 33:10
25 --> $DIR/wf-static-method.rs:33:10
27 LL | impl<'a, 'b> Foo<'a, 'b, ()> for IndirectEvil<'a, 'b> {
29 note: but lifetime parameter must outlive the lifetime 'a as defined on the impl at 33:6
30 --> $DIR/wf-static-method.rs:33:6
32 LL | impl<'a, 'b> Foo<'a, 'b, ()> for IndirectEvil<'a, 'b> {
35 error[E0312]: lifetime of reference outlives lifetime of borrowed content...
36 --> $DIR/wf-static-method.rs:43:9
38 LL | u //~ ERROR E0312
41 note: ...the reference is valid for the lifetime 'a as defined on the impl at 41:6...
42 --> $DIR/wf-static-method.rs:41:6
44 LL | impl<'a, 'b> Evil<'a, 'b> {
46 note: ...but the borrowed content is only valid for the lifetime 'b as defined on the impl at 41:10
47 --> $DIR/wf-static-method.rs:41:10
49 LL | impl<'a, 'b> Evil<'a, 'b> {
52 error[E0495]: cannot infer an appropriate lifetime for lifetime parameter `'b` due to conflicting requirements
53 --> $DIR/wf-static-method.rs:51:5
55 LL | <()>::static_evil(b) //~ ERROR cannot infer an appropriate lifetime
58 note: first, the lifetime cannot outlive the lifetime 'b as defined on the function body at 50:13...
59 --> $DIR/wf-static-method.rs:50:13
61 LL | fn evil<'a, 'b>(b: &'b u32) -> &'a u32 {
63 note: ...so that reference does not outlive borrowed content
64 --> $DIR/wf-static-method.rs:51:23
66 LL | <()>::static_evil(b) //~ ERROR cannot infer an appropriate lifetime
68 note: but, the lifetime must be valid for the lifetime 'a as defined on the function body at 50:9...
69 --> $DIR/wf-static-method.rs:50:9
71 LL | fn evil<'a, 'b>(b: &'b u32) -> &'a u32 {
73 note: ...so that reference does not outlive borrowed content
74 --> $DIR/wf-static-method.rs:51:5
76 LL | <()>::static_evil(b) //~ ERROR cannot infer an appropriate lifetime
77 | ^^^^^^^^^^^^^^^^^^^^
79 error[E0495]: cannot infer an appropriate lifetime for lifetime parameter `'b` due to conflicting requirements
80 --> $DIR/wf-static-method.rs:55:5
82 LL | <IndirectEvil>::static_evil(b)
83 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
85 note: first, the lifetime cannot outlive the lifetime 'b as defined on the function body at 54:22...
86 --> $DIR/wf-static-method.rs:54:22
88 LL | fn indirect_evil<'a, 'b>(b: &'b u32) -> &'a u32 {
90 note: ...so that reference does not outlive borrowed content
91 --> $DIR/wf-static-method.rs:55:33
93 LL | <IndirectEvil>::static_evil(b)
95 note: but, the lifetime must be valid for the lifetime 'a as defined on the function body at 54:18...
96 --> $DIR/wf-static-method.rs:54:18
98 LL | fn indirect_evil<'a, 'b>(b: &'b u32) -> &'a u32 {
100 note: ...so that reference does not outlive borrowed content
101 --> $DIR/wf-static-method.rs:55:5
103 LL | <IndirectEvil>::static_evil(b)
104 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
106 error: aborting due to 5 previous errors
108 Some errors occurred: E0312, E0478, E0495.
109 For more information about an error, try `rustc --explain E0312`.