summaryrefslogtreecommitdiffstats
path: root/src/test/ui/unnamed_argument_mode.rs
blob: 5b7b4002f477f34b9adb12b0d471cb4e5afa22b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// run-pass
// pretty-expanded FIXME #23616

fn good(_a: &isize) {
}

// unnamed argument &isize is now parse x: &isize

fn called<F>(_f: F) where F: FnOnce(&isize) {
}

pub fn main() {
    called(good);
}