]> git.lizzy.rs Git - rust.git/blob - src/test/ui/closure-expected-type/issue-24421.rs
Rollup merge of #105758 - Nilstrieb:typeck-results-mod, r=compiler-errors
[rust.git] / src / test / ui / closure-expected-type / issue-24421.rs
1 // check-pass
2
3 fn test<F: Fn(&u64, &u64)>(f: F) {}
4
5 fn main() {
6     test(|x,      y     | {});
7     test(|x:&u64, y:&u64| {});
8     test(|x:&u64, y     | {});
9     test(|x,      y:&u64| {});
10 }