summaryrefslogtreecommitdiffstats
path: root/src/test/ui/associated-types/issue-62200.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/associated-types/issue-62200.stderr')
-rw-r--r--src/test/ui/associated-types/issue-62200.stderr11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/test/ui/associated-types/issue-62200.stderr b/src/test/ui/associated-types/issue-62200.stderr
new file mode 100644
index 000000000..f14cd81fd
--- /dev/null
+++ b/src/test/ui/associated-types/issue-62200.stderr
@@ -0,0 +1,11 @@
+error[E0582]: binding for associated type `Output` references an anonymous lifetime, which does not appear in the trait input types
+ --> $DIR/issue-62200.rs:11:39
+ |
+LL | fn foo(x: impl Fn(<S as T<'_>>::A) -> <S as T<'_>>::A) {}
+ | ^^^^^^^^^^^^^^^
+ |
+ = note: lifetimes appearing in an associated type are not considered constrained
+
+error: aborting due to previous error
+
+For more information about this error, try `rustc --explain E0582`.