]> git.lizzy.rs Git - rust.git/blob - src/test/ui/async-await/issues/issue-78600.stderr
Auto merge of #94105 - 5225225:destabilise-entry-insert, r=Mark-Simulacrum
[rust.git] / src / test / ui / async-await / issues / issue-78600.stderr
1 error[E0760]: `async fn` return type cannot contain a projection or `Self` that references lifetimes from a parent scope
2   --> $DIR/issue-78600.rs:6:33
3    |
4 LL |     async fn new(i: &'a i32) -> Result<Self, ()> {
5    |                                 ^^^^^^^----^^^^^
6    |                                        |
7    |                                        help: consider spelling out the type instead: `S<'a>`
8
9 error: aborting due to previous error
10
11 For more information about this error, try `rustc --explain E0760`.