rust/src/test/run-pass/do2.rs
2012-06-18 17:42:30 -07:00

6 lines
92 B
Rust

fn f(f: fn@(int) -> int) -> int { f(10) }
fn main() {
assert do f() { |i| i } == 10;
}