]> git.lizzy.rs Git - rust.git/blob - tests/ui/closures/issue-68025.rs
Rollup merge of #106664 - chenyukang:yukang/fix-106597-remove-lseek, r=cuviper
[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 }