summaryrefslogtreecommitdiffstats
path: root/src/test/ui/traits/cycle-generic-bound.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/test/ui/traits/cycle-generic-bound.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/test/ui/traits/cycle-generic-bound.rs b/src/test/ui/traits/cycle-generic-bound.rs
new file mode 100644
index 000000000..9241f3789
--- /dev/null
+++ b/src/test/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() { }