rust/src/test/ui/issues/issue-22789.rs
2018-12-25 21:08:33 -07:00

8 lines
143 B
Rust

// compile-pass
// skip-codegen
#![feature(unboxed_closures, fn_traits)]
fn main() {
let k = |x: i32| { x + 1 };
Fn::call(&k, (0,));
}