Sign in
rust
/
rust
/
0e252dfa22dd03f8a87f665d0ebe1192a5da07bf
/
.
/
tests
/
ui
/
binding
/
func-arg-wild-pattern.rs
blob: 35cc9463aea221b016b9fd05083016a5603cb485 [
file
]
//@ 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
);
}