]> git.lizzy.rs Git - rust.git/blob - src/test/ui/async-await/issues/issue-78600.stderr
Merge commit '7b73b60faca71d01d900e49831fcb84553e93019' into sync-rustfmt
[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`.