rust/tests/ui/binding/underscore-prefixed-function-argument.rs
2025-07-10 18:50:35 +05:00

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);
}