1 2 3 4 5 6 7 8 9 10 11 12
// run-pass #![feature(fn_traits)] use std::ops::Fn; fn say(x: u32, y: u32) { println!("{} {}", x, y); } fn main() { Fn::call(&say, (1, 2)); }