]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/async-await/issues/issue-78600.stderr
Make impl_trait_projections a feature gate.
[rust.git] / src / test / ui / async-await / issues / issue-78600.stderr
index 92b66147106e1eae7ecf4b851d1f1975cf9af1c6..37eafa996c535863558e25f6d1a55f902eeb5a02 100644 (file)
@@ -1,11 +1,14 @@
-error[E0760]: `async fn` return type cannot contain a projection or `Self` that references lifetimes from a parent scope
+error[E0658]: `async fn` return type cannot contain a projection or `Self` that references lifetimes from a parent scope
   --> $DIR/issue-78600.rs:6:33
    |
 LL |     async fn new(i: &'a i32) -> Result<Self, ()> {
    |                                 ^^^^^^^----^^^^^
    |                                        |
    |                                        help: consider spelling out the type instead: `S<'a>`
+   |
+   = note: see issue #103532 <https://github.com/rust-lang/rust/issues/103532> for more information
+   = help: add `#![feature(impl_trait_projections)]` to the crate attributes to enable
 
 error: aborting due to previous error
 
-For more information about this error, try `rustc --explain E0760`.
+For more information about this error, try `rustc --explain E0658`.