rust/src/test/run-pass/expr-block-fn.rs
2012-08-20 22:00:06 -07:00

11 lines
159 B
Rust

fn test_fn() {
type t = fn@() -> int;
fn ten() -> int { return 10; }
let rs: t = { ten };
//assert (rs() == 10);
}
fn main() { test_fn(); }