mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-10 19:16:51 +00:00
Add test to check that we handle predicates that can define assoc types correctly
This commit is contained in:
parent
67ea9b227f
commit
b02a905d93
@ -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() {}
|
Loading…
Reference in New Issue
Block a user