summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-22789.rs
blob: cef407537668688b93192350aef81fb2d5489d72 (plain)
1
2
3
4
5
6
7
8
// check-pass

#![feature(unboxed_closures, fn_traits)]

fn main() {
    let k = |x: i32| { x + 1 };
    Fn::call(&k, (0,));
}