]>
Commit | Line | Data |
---|---|---|
5099ac24 | 1 | error: lifetime may not live long enough |
48663c56 XL |
2 | --> $DIR/issue-16683.rs:4:9 |
3 | | | |
c295e0f8 XL |
4 | LL | trait T<'a> { |
5 | | -- lifetime `'a` defined here | |
6 | LL | fn a(&'a self) -> &'a bool; | |
48663c56 | 7 | LL | fn b(&self) { |
5099ac24 | 8 | | - let's call the lifetime of this reference `'1` |
48663c56 | 9 | LL | self.a(); |
5099ac24 | 10 | | ^^^^^^^^ argument requires that `'1` must outlive `'a` |
48663c56 XL |
11 | |
12 | error: aborting due to previous error | |
13 |