//@ revisions: current next //@ ignore-compare-mode-next-solver (explicit revisions) //@[next] compile-flags: -Znext-solver //@ check-pass #![feature(non_lifetime_binders)] //~^ WARN the feature `non_lifetime_binders` is incomplete pub trait Foo { type Bar: ?Sized; } impl Foo for () { type Bar = K; } pub fn f(a: T1, b: T2) where T1: for Foo = T>, T2: for Foo = >::Bar>, { } fn it_works() { f((), ()); } fn main() {}