summaryrefslogtreecommitdiffstats
path: root/src/test/ui/impl-trait/nested-return-type4.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/impl-trait/nested-return-type4.stderr')
-rw-r--r--src/test/ui/impl-trait/nested-return-type4.stderr20
1 files changed, 0 insertions, 20 deletions
diff --git a/src/test/ui/impl-trait/nested-return-type4.stderr b/src/test/ui/impl-trait/nested-return-type4.stderr
deleted file mode 100644
index e761a60e7..000000000
--- a/src/test/ui/impl-trait/nested-return-type4.stderr
+++ /dev/null
@@ -1,20 +0,0 @@
-error[E0700]: hidden type for `impl Future<Output = impl Sized>` captures lifetime that does not appear in bounds
- --> $DIR/nested-return-type4.rs:4:5
- |
-LL | fn test<'s: 's>(s: &'s str) -> impl std::future::Future<Output = impl Sized> {
- | -- hidden type `[async block@$DIR/nested-return-type4.rs:4:5: 4:31]` captures the lifetime `'s` as defined here
-LL | async move { let _s = s; }
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^
- |
-help: to declare that `impl Future<Output = impl Sized>` captures `'s`, you can add an explicit `'s` lifetime bound
- |
-LL | fn test<'s: 's>(s: &'s str) -> impl std::future::Future<Output = impl Sized> + 's {
- | ++++
-help: to declare that `impl Sized` captures `'s`, you can add an explicit `'s` lifetime bound
- |
-LL | fn test<'s: 's>(s: &'s str) -> impl std::future::Future<Output = impl Sized + 's> {
- | ++++
-
-error: aborting due to previous error
-
-For more information about this error, try `rustc --explain E0700`.