summaryrefslogtreecommitdiffstats
path: root/tests/ui/async-await/issues/issue-78600.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/async-await/issues/issue-78600.stderr')
-rw-r--r--tests/ui/async-await/issues/issue-78600.stderr14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/ui/async-await/issues/issue-78600.stderr b/tests/ui/async-await/issues/issue-78600.stderr
new file mode 100644
index 000000000..37eafa996
--- /dev/null
+++ b/tests/ui/async-await/issues/issue-78600.stderr
@@ -0,0 +1,14 @@
+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 E0658`.