]> git.lizzy.rs Git - rust.git/blob - src/test/ui/binding/func-arg-wild-pattern.rs
Add 'compiler/rustc_codegen_gcc/' from commit 'afae271d5d3719eeb92c18bc004bb6d1965a5f3f'
[rust.git] / src / test / 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 }