This commit is contained in:
Yuki Okushi 2020-01-10 05:08:02 +09:00
parent c0e02ad724
commit 2ecc48ffa1
2 changed files with 14 additions and 2 deletions

View file

@ -0,0 +1,12 @@
// check-pass
fn foo<F, G>(_: G, _: Box<F>)
where
F: Fn(),
G: Fn(Box<F>),
{
}
fn main() {
foo(|f| (*f)(), Box::new(|| {}));
}