]> git.lizzy.rs Git - rust.git/blob - src/test/ui/closure-expected-type/issue-24421.rs
Auto merge of #102992 - nnethercote:rm-RunCompiler-emitter, r=bjorn3
[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 }