]>
Commit | Line | Data |
---|---|---|
9fa01778 | 1 | error: lifetime may not live long enough |
923072b8 | 2 | --> $DIR/wf-self-type.rs:10:5 |
0bf4aa26 XL |
3 | | |
4 | LL | pub fn foo<'a, 'b>(u: &'b ()) -> &'a () { | |
5 | | -- -- lifetime `'b` defined here | |
6 | | | | |
7 | | lifetime `'a` defined here | |
532ac7d7 | 8 | LL | Foo::xmute(u) |
5099ac24 | 9 | | ^^^^^^^^^^^^^ function was supposed to return data with lifetime `'a` but it is returning data with lifetime `'b` |
60c5eb7d XL |
10 | | |
11 | = help: consider adding the following bound: `'b: 'a` | |
0bf4aa26 XL |
12 | |
13 | error: aborting due to previous error | |
14 |