]> git.proxmox.com Git - rustc.git/blob - tests/ui/async-await/issues/issue-78600.stderr
New upstream version 1.68.2+dfsg1
[rustc.git] / tests / ui / async-await / issues / issue-78600.stderr
1 error[E0658]: `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 = note: see issue #103532 <https://github.com/rust-lang/rust/issues/103532> for more information
10 = help: add `#![feature(impl_trait_projections)]` to the crate attributes to enable
11
12 error: aborting due to previous error
13
14 For more information about this error, try `rustc --explain E0658`.