//@ revisions: current next //@[next] compile-flags: -Znext-solver //@[next] known-bug: trait-system-refactor-initiative#71 //@[current] check-pass trait Foo {} fn needs_foo(_: T) where Wrap: Foo, { } struct Wrap(T); impl Foo for Wrap where T: Fn(i32) {} fn main() { needs_foo(|x| { x.to_string(); }); }