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