Sign in
fuchsia
/
third_party
/
rust
/
9ae1a664f7b947dadb9e97eea7703831d9cd5d31
/
.
/
src
/
test
/
ui
/
binding
/
func-arg-wild-pattern.rs
blob: bcd82c679a57ec4a0fefe8d58d14ecc7e969ceb6 [
file
] [
log
] [
blame
]
// 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
);
}