summaryrefslogtreecommitdiffstats
path: root/tests/ui/generic-associated-types/issue-68653.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/generic-associated-types/issue-68653.rs')
-rw-r--r--tests/ui/generic-associated-types/issue-68653.rs13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/ui/generic-associated-types/issue-68653.rs b/tests/ui/generic-associated-types/issue-68653.rs
new file mode 100644
index 000000000..170b87cf2
--- /dev/null
+++ b/tests/ui/generic-associated-types/issue-68653.rs
@@ -0,0 +1,13 @@
+// A regression test for #68653, which was fixed by #68938.
+
+// check-pass
+
+trait Fun {
+ type F<'a: 'a>;
+}
+
+impl <T> Fun for T {
+ type F<'a> = Self;
+}
+
+fn main() {}