rust/src/test/run-pass/block-arg-used-as-any.rs
2012-01-19 07:11:50 -08:00

9 lines
126 B
Rust

fn call_any(f: fn() -> uint) -> uint {
ret f();
}
fn main() {
let x_r = call_any {|| 22u };
assert x_r == 22u;
}