// check-pass // compile-flags: -Znormalize-docs // Regression test for . pub trait Query {} pub trait AsQuery { type Query; } impl AsQuery for T { type Query = T; } pub trait SelectDsl { type Output; } impl SelectDsl for T where T: AsQuery, T::Query: SelectDsl, { type Output = >::Output; } pub type Select = >::Output;