]> git.proxmox.com Git - rustc.git/blob - src/test/ui/async-await/issue-61949-self-return-type.stderr
New upstream version 1.46.0~beta.2+dfsg1
[rustc.git] / src / test / ui / async-await / issue-61949-self-return-type.stderr
1 error[E0760]: `async fn` return type cannot contain a projection or `Self` that references lifetimes from a parent scope
2 --> $DIR/issue-61949-self-return-type.rs:11:40
3 |
4 LL | pub async fn new(_bar: &'a i32) -> Self {
5 | ^^^^ help: consider spelling out the type instead: `Foo<'a>`
6
7 error: aborting due to previous error
8
9 For more information about this error, try `rustc --explain E0760`.