]> git.lizzy.rs Git - rust.git/blob - src/test/ui/closures/issue-68025.rs
Auto merge of #84267 - dtolnay:ptrunit, r=nagisa
[rust.git] / src / test / ui / closures / issue-68025.rs
1 // check-pass
2
3 fn foo<F, G>(_: G, _: Box<F>)
4 where
5     F: Fn(),
6     G: Fn(Box<F>),
7 {
8 }
9
10 fn main() {
11     foo(|f| (*f)(), Box::new(|| {}));
12 }