]>
Commit | Line | Data |
---|---|---|
b7449926 XL |
1 | error: unsatisfied lifetime constraints |
2 | --> $DIR/wf-static-method.rs:27:9 | |
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 //~ ERROR E0312 | |
10 | | ^ returning this value requires that `'b` must outlive `'a` | |
11 | ||
12 | error: unsatisfied lifetime constraints | |
13 | --> $DIR/wf-static-method.rs:43:9 | |
14 | | | |
15 | LL | impl<'a, 'b> Evil<'a, 'b> { | |
16 | | -- -- lifetime `'b` defined here | |
17 | | | | |
18 | | lifetime `'a` defined here | |
19 | LL | fn inherent_evil(u: &'b u32) -> &'a u32 { | |
20 | LL | u //~ ERROR E0312 | |
21 | | ^ returning this value requires that `'b` must outlive `'a` | |
22 | ||
23 | error: aborting due to 2 previous errors | |
24 |