about summary refs log tree commit diff
path: root/tests/ui/binding/underscore-prefixed-function-argument.rs
blob: e5b2ec1b5f0051eef3cd3c61ee1e6e8336c00aca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! 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);
}