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

6 lines
92 B
Rust

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