1 error[E0309]: the parameter type `Self` may not live long enough
2 --> $DIR/async-lifetimes.rs:9:43
4 LL | async fn foo(&'a self, key: &'b T) -> (&'a Self, &'b T);
7 = help: consider adding an explicit lifetime bound `Self: 'a`...
8 = note: ...so that the reference type `&'a Self` does not outlive the data it points at
10 error[E0309]: the parameter type `T` may not live long enough
11 --> $DIR/async-lifetimes.rs:9:43
13 LL | async fn foo(&'a self, key: &'b T) -> (&'a Self, &'b T);
14 | ^^^^^^^^^^^^^^^^^ ...so that the reference type `&'b T` does not outlive the data it points at
16 help: consider adding an explicit lifetime bound...
18 LL | trait MyTrait<'a, 'b, T: 'b> {
21 error: aborting due to 2 previous errors
23 For more information about this error, try `rustc --explain E0309`.