// Check that we don't reject non-escaping late-bound vars in the type of assoc const bindings. // There's no reason why we should disallow them. // //@ check-pass #![feature(associated_const_equality)] trait Trait { const K: T; } fn take( _: impl Trait< fn(&'a str) -> &'a str as Discard>::Out, K = { () } >, ) {} trait Discard { type Out; } impl Discard for T { type Out = (); } fn main() {}