mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-02 18:27:37 +00:00
16 lines
188 B
Rust
16 lines
188 B
Rust
//! 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);
|
|
}
|