]>
Commit | Line | Data |
---|---|---|
e1599b0c XL |
1 | error: lifetime may not live long enough |
2 | --> $DIR/issue-63388-1.rs:13:5 | |
3 | | | |
4 | LL | async fn do_sth<'a>( | |
5 | | -- lifetime `'a` defined here | |
6 | LL | &'a self, foo: &dyn Foo | |
60c5eb7d | 7 | | - let's call the lifetime of this reference `'1` |
e1599b0c XL |
8 | LL | ) -> &dyn Foo |
9 | LL | / { | |
10 | LL | | foo | |
11 | LL | | } | |
74b04a01 | 12 | | |_____^ method was supposed to return data with lifetime `'a` but it is returning data with lifetime `'1` |
e1599b0c | 13 | |
74b04a01 | 14 | error: aborting due to previous error |
e1599b0c | 15 |