]>
Commit | Line | Data |
---|---|---|
48663c56 XL |
1 | error: lifetime may not live long enough |
2 | --> $DIR/match-ref-mut-let-invariance.rs:11:9 | |
3 | | | |
4 | LL | impl<'b> S<'b> { | |
5 | | -- lifetime `'b` defined here | |
6 | LL | fn bar<'a>(&'a mut self) -> &'a mut &'a i32 { | |
7 | | -- lifetime `'a` defined here | |
8 | LL | let ref mut x = self.0; | |
9 | LL | x | |
10 | | ^ returning this value requires that `'a` must outlive `'b` | |
60c5eb7d XL |
11 | | |
12 | = help: consider adding the following bound: `'a: 'b` | |
48663c56 XL |
13 | |
14 | error: aborting due to previous error | |
15 |