summaryrefslogtreecommitdiffstats
path: root/src/test/ui/closure-expected-type/issue-24421.rs
blob: 2e104b599bd75bd53ba60c7c2ce792a1e20ede44 (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| {});
}