From b02a905d93cc1f0134dd3390d1b69991c8e82814 Mon Sep 17 00:00:00 2001 From: Santiago Pastorino Date: Wed, 25 Nov 2020 10:31:48 -0300 Subject: [PATCH] Add test to check that we handle predicates that can define assoc types correctly --- .../handle-predicates-that-can-define-assoc-type.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 src/test/ui/associated-type-bounds/handle-predicates-that-can-define-assoc-type.rs 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 000000000000..b1e54ec04493 --- /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 {} +trait Bar { + type A; + type B; +} +trait Baz: Bar + Foo {} + +fn main() {}