1 2 3 4 5 6 7 8 9 10 11
// run-pass // compile-flags:-g fn helper<F: FnOnce(usize) -> bool>(_f: F) { print!(""); } fn main() { let cond = 0; helper(|v| v == cond) }