1 `async fn`/`impl trait` return type cannot contain a projection or `Self` that references lifetimes from a parent scope.
3 Erroneous code example:
5 ```compile_fail,E0754,edition2018
9 async fn new(i: &'a i32) -> Self {
15 To fix this error we need to spell out `Self` to `S<'a>`:
18 struct S<'a>(&'a i32);
21 async fn new(i: &'a i32) -> S<'a> {
27 This will be allowed at some point in the future, but the implementation is not yet complete. See the [issue-61949] for this limitation.
29 [issue-61949]: https://github.com/rust-lang/rust/issues/61949