blob: 4eeef871c5bfc6ea8fa2811ed7a6353496402880 [file] [log] [blame]
error[E0760]: `async fn` return type cannot contain a projection or `Self` that references lifetimes from a parent scope
--> $DIR/issue-61949-self-return-type.rs:11:40
|
LL | pub async fn new(_bar: &'a i32) -> Self {
| ^^^^ help: consider spelling out the type instead: `Foo<'a>`
error: aborting due to previous error
For more information about this error, try `rustc --explain E0760`.