// check-pass // compile-flags: -Ztrait-solver=next // Issue 108933 trait Add { type Sum; } impl Add<()> for () { type Sum = (); } type Unit = <() as Add<()>>::Sum; trait Trait { type Output; } fn f() where T: Trait<()>, >::Output: Sized, { } fn g() where T: Trait, >::Output: Sized, { } fn h() where T: Trait<()>, >::Output: Sized, { } fn main() {}