summaryrefslogtreecommitdiffstats
path: root/tests/ui/binding/fn-pattern-expected-type.rs
blob: faeb76496369484a01cb78e7911ce25b54ff1537 (plain)
1
2
3
4
5
6
7
8
9
// run-pass

pub fn main() {
    let f = |(x, y): (isize, isize)| {
        assert_eq!(x, 1);
        assert_eq!(y, 2);
    };
    f((1, 2));
}