about summary refs log tree commit diff
path: root/tests/ui/binding/func-arg-wild-pattern.rs
blob: 35cc9463aea221b016b9fd05083016a5603cb485 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
//@ run-pass
// Test that we can compile code that uses a `_` in function argument
// patterns.


fn foo((x, _): (isize, isize)) -> isize {
    x
}

pub fn main() {
    assert_eq!(foo((22, 23)), 22);
}