rust/src/test/run-pass/do3.rs
2012-07-01 19:19:32 -07:00

6 lines
90 B
Rust

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