about summary refs log tree commit diff
diff options
context:
space:
mode:
authorSantiago Pastorino <spastorino@gmail.com>2020-11-25 10:31:48 -0300
committerSantiago Pastorino <spastorino@gmail.com>2020-11-27 11:23:53 -0300
commitb02a905d93cc1f0134dd3390d1b69991c8e82814 (patch)
treebef48a63902352d7b18bacaf04bc9994c7f51113
parent67ea9b227f7e7f5599ff9e194566ae769e34847d (diff)
downloadrust-b02a905d93cc1f0134dd3390d1b69991c8e82814.tar.gz
rust-b02a905d93cc1f0134dd3390d1b69991c8e82814.zip
Add test to check that we handle predicates that can define assoc types correctly
-rw-r--r--src/test/ui/associated-type-bounds/handle-predicates-that-can-define-assoc-type.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/test/ui/associated-type-bounds/handle-predicates-that-can-define-assoc-type.rs b/src/test/ui/associated-type-bounds/handle-predicates-that-can-define-assoc-type.rs
new file mode 100644
index 00000000000..b1e54ec0449
--- /dev/null
+++ b/src/test/ui/associated-type-bounds/handle-predicates-that-can-define-assoc-type.rs
@@ -0,0 +1,10 @@
+// check-pass
+
+trait Foo<T> {}
+trait Bar {
+    type A;
+    type B;
+}
+trait Baz: Bar<B = u32> + Foo<Self::A> {}
+
+fn main() {}