about summary refs log tree commit diff
path: root/tests/ui/closure-expected-type/issue-24421.rs
blob: 13fcf77dae67030c597416daa3361fa96b54f11d (plain)
1
2
3
4
5
6
7
8
9
10
//@ check-pass

fn test<F: Fn(&u64, &u64)>(f: F) {}

fn main() {
    test(|x,      y     | {});
    test(|x:&u64, y:&u64| {});
    test(|x:&u64, y     | {});
    test(|x,      y:&u64| {});
}