1 error[E0312]: lifetime of reference outlives lifetime of borrowed content...
2 --> $DIR/wf-static-method.rs:17:9
7 note: ...the reference is valid for the lifetime `'a` as defined here...
8 --> $DIR/wf-static-method.rs:14: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 here
13 --> $DIR/wf-static-method.rs:14: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:26:18
21 LL | let me = Self::make_me();
24 note: lifetime parameter instantiated with the lifetime `'b` as defined here
25 --> $DIR/wf-static-method.rs:23: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 here
30 --> $DIR/wf-static-method.rs:23: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:33:9
41 note: ...the reference is valid for the lifetime `'a` as defined here...
42 --> $DIR/wf-static-method.rs:31:6
44 LL | impl<'a, 'b> Evil<'a, 'b> {
46 note: ...but the borrowed content is only valid for the lifetime `'b` as defined here
47 --> $DIR/wf-static-method.rs:31: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:41:5
55 LL | <()>::static_evil(b)
58 note: first, the lifetime cannot outlive the lifetime `'b` as defined here...
59 --> $DIR/wf-static-method.rs:40: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:41:23
66 LL | <()>::static_evil(b)
68 note: but, the lifetime must be valid for the lifetime `'a` as defined here...
69 --> $DIR/wf-static-method.rs:40: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:41:5
76 LL | <()>::static_evil(b)
77 | ^^^^^^^^^^^^^^^^^^^^
79 error[E0495]: cannot infer an appropriate lifetime for lifetime parameter `'b` due to conflicting requirements
80 --> $DIR/wf-static-method.rs:45:5
82 LL | <IndirectEvil>::static_evil(b)
83 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
85 note: first, the lifetime cannot outlive the lifetime `'b` as defined here...
86 --> $DIR/wf-static-method.rs:44: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:45:33
93 LL | <IndirectEvil>::static_evil(b)
95 note: but, the lifetime must be valid for the lifetime `'a` as defined here...
96 --> $DIR/wf-static-method.rs:44: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:45:5
103 LL | <IndirectEvil>::static_evil(b)
104 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
106 error[E0495]: cannot infer an appropriate lifetime for lifetime parameter `'b` due to conflicting requirements
107 --> $DIR/wf-static-method.rs:50:5
109 LL | <Evil>::inherent_evil(b)
110 | ^^^^^^^^^^^^^^^^^^^^^
112 note: first, the lifetime cannot outlive the lifetime `'b` as defined here...
113 --> $DIR/wf-static-method.rs:49:22
115 LL | fn inherent_evil<'a, 'b>(b: &'b u32) -> &'a u32 {
117 note: ...so that reference does not outlive borrowed content
118 --> $DIR/wf-static-method.rs:50:27
120 LL | <Evil>::inherent_evil(b)
122 note: but, the lifetime must be valid for the lifetime `'a` as defined here...
123 --> $DIR/wf-static-method.rs:49:18
125 LL | fn inherent_evil<'a, 'b>(b: &'b u32) -> &'a u32 {
127 note: ...so that reference does not outlive borrowed content
128 --> $DIR/wf-static-method.rs:50:5
130 LL | <Evil>::inherent_evil(b)
131 | ^^^^^^^^^^^^^^^^^^^^^^^^
133 error: aborting due to 6 previous errors
135 Some errors have detailed explanations: E0312, E0478, E0495.
136 For more information about an error, try `rustc --explain E0312`.