summaryrefslogtreecommitdiffstats
path: root/tests/ui/traits/cycle-generic-bound.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/traits/cycle-generic-bound.rs')
-rw-r--r--tests/ui/traits/cycle-generic-bound.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/ui/traits/cycle-generic-bound.rs b/tests/ui/traits/cycle-generic-bound.rs
new file mode 100644
index 000000000..9241f3789
--- /dev/null
+++ b/tests/ui/traits/cycle-generic-bound.rs
@@ -0,0 +1,11 @@
+// run-pass
+// Regression test for #15477. This test just needs to compile.
+
+// pretty-expanded FIXME #23616
+
+trait Chromosome<X: Chromosome<i32>> {
+}
+
+impl Chromosome<i32> for i32 { }
+
+fn main() { }