diff options
Diffstat (limited to 'src/test/ui/associated-type-bounds/handle-predicates-that-can-define-assoc-type.rs')
-rw-r--r-- | src/test/ui/associated-type-bounds/handle-predicates-that-can-define-assoc-type.rs | 10 |
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 000000000..b1e54ec04 --- /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() {} |