// check-pass trait Foo { type Bar; } trait Qux: Foo + AsRef {} trait Foo2 {} trait Qux2: Foo2 + AsRef { type Bar; } fn main() {}