summaryrefslogtreecommitdiffstats
path: root/tests/ui/traits/next-solver/elaborate-item-bounds.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/traits/next-solver/elaborate-item-bounds.rs')
-rw-r--r--tests/ui/traits/next-solver/elaborate-item-bounds.rs12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/ui/traits/next-solver/elaborate-item-bounds.rs b/tests/ui/traits/next-solver/elaborate-item-bounds.rs
new file mode 100644
index 000000000..0f1f6c044
--- /dev/null
+++ b/tests/ui/traits/next-solver/elaborate-item-bounds.rs
@@ -0,0 +1,12 @@
+// compile-flags: -Znext-solver
+// check-pass
+
+trait Foo {
+ type Bar: Bar;
+}
+
+trait Bar: Baz {}
+
+trait Baz {}
+
+fn main() {}