Sign in
rust
/
rust-lang
/
rust
/
refs/heads/beta
/
.
/
tests
/
ui
/
binding
/
underscore-prefixed-function-argument.rs
blob: e5b2ec1b5f0051eef3cd3c61ee1e6e8336c00aca [
file
] [
log
] [
blame
]
//! Test that argument names starting with `_` are usable.
//@ run-pass
fn
good
(
_a
:
&
isize
)
{}
fn
called
<
F
>(
_f
:
F
)
where
F
:
FnOnce
(&
isize
),
{
}
pub
fn
main
()
{
called
(
good
);
}