//@ known-bug: rust-lang/rust#124440 #![allow(warnings)] trait Foo {} impl Foo for F where F: FnMut(&()) {} struct Bar { f: F, } impl Foo for Bar where F: Foo {} fn assert_foo(_: F) where Bar: Foo, { } fn main() { assert_foo(|_| ()); }