blob: 0bc8bed05884caaf96589a6811ac9a11e880d644 [file] [log] [blame] [edit]
//@ check-pass
#![feature(unboxed_closures, fn_traits)]
fn main() {
let k = |x: i32| { x + 1 };
Fn::call(&k, (0,));
}
// https://github.com/rust-lang/rust/issues/22789