summaryrefslogtreecommitdiffstats
path: root/tests/ui/impl-trait/nested-rpit-hrtb-2.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/impl-trait/nested-rpit-hrtb-2.stderr')
-rw-r--r--tests/ui/impl-trait/nested-rpit-hrtb-2.stderr12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/ui/impl-trait/nested-rpit-hrtb-2.stderr b/tests/ui/impl-trait/nested-rpit-hrtb-2.stderr
new file mode 100644
index 000000000..71d1d45f4
--- /dev/null
+++ b/tests/ui/impl-trait/nested-rpit-hrtb-2.stderr
@@ -0,0 +1,12 @@
+error[E0700]: hidden type for `impl Sized` captures lifetime that does not appear in bounds
+ --> $DIR/nested-rpit-hrtb-2.rs:6:57
+ |
+LL | fn test() -> impl for<'a> Trait<'a, Assoc = impl Sized> {}
+ | -- ---------- ^^
+ | | |
+ | | opaque type defined here
+ | hidden type `&'a str` captures the lifetime `'a` as defined here
+
+error: aborting due to previous error
+
+For more information about this error, try `rustc --explain E0700`.