blob: 776e0f95d09c2bf689b397c76312b6425313d6a2 [file] [log] [blame]
//@ check-pass
trait Trait {
type Assoc<'a>;
}
fn f<T: Trait>(_: T, _: impl Fn(T::Assoc<'_>)) {}
struct Type;
impl Trait for Type {
type Assoc<'a> = ();
}
fn main() {
f(Type, |_|());
}