//@ known-bug: #120033 #![feature(non_lifetime_binders)] #![allow(sized_hierarchy_migration)] #![feature(sized_hierarchy)] // added to keep parameters unconstrained pub trait Foo { type Bar; } pub struct Bar {} pub fn f() where T1: for Foo>, T2: for Foo = T1::Bar>, {}