// check-pass fn foo(_: G, _: Box) where F: Fn(), G: Fn(Box), { } fn main() { foo(|f| (*f)(), Box::new(|| {})); }