summaryrefslogtreecommitdiffstats
path: root/tests/ui/generic-associated-types/issue-62326-parameter-out-of-range.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/generic-associated-types/issue-62326-parameter-out-of-range.rs')
-rw-r--r--tests/ui/generic-associated-types/issue-62326-parameter-out-of-range.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/ui/generic-associated-types/issue-62326-parameter-out-of-range.rs b/tests/ui/generic-associated-types/issue-62326-parameter-out-of-range.rs
new file mode 100644
index 000000000..c1140bff8
--- /dev/null
+++ b/tests/ui/generic-associated-types/issue-62326-parameter-out-of-range.rs
@@ -0,0 +1,11 @@
+// check-pass
+
+trait Iterator {
+ type Item<'a>: 'a;
+}
+
+impl Iterator for () {
+ type Item<'a> = &'a ();
+}
+
+fn main() {}