]> git.lizzy.rs Git - rust.git/blob - tests/ui/binding/func-arg-wild-pattern.rs
Rollup merge of #106625 - Swatinem:ref/cov6, r=nagisa
[rust.git] / tests / ui / binding / func-arg-wild-pattern.rs
1 // run-pass
2 // Test that we can compile code that uses a `_` in function argument
3 // patterns.
4
5
6 fn foo((x, _): (isize, isize)) -> isize {
7     x
8 }
9
10 pub fn main() {
11     assert_eq!(foo((22, 23)), 22);
12 }