summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-10718.rs
blob: a1de0cfe6ca6ad37948c0c414bfcde8df2b161d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
// run-pass
// pretty-expanded FIXME #23616

fn f<F:FnOnce()>(p: F) {
    p();
}

pub fn main() {
    let p = || ();
    f(p);
}