fn constituent_types<I: Interner>(
    db: &dyn RustIrDatabase<I>,
    ty: &TyKind<I>
) -> Vec<Ty<I>>