]> git.lizzy.rs Git - rust.git/blob - tests/ui/closures/issue-68025.rs
Rollup merge of #107061 - compiler-errors:new-solver-new-candidates-3, r=lcnr
[rust.git] / tests / 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 }