]> git.lizzy.rs Git - rust.git/blob - src/test/ui/async-await/issue-61949-self-return-type.stderr
Rollup merge of #102215 - alexcrichton:wasm-link-whole-archive, r=estebank
[rust.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:10: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`.