rust/src/test/run-pass/expr-block-fn.rs
Brian Anderson 1f04c3dcef Un-XFAIL expr-block-fn.rs
It mysteriously works now.
2011-04-10 16:25:09 -04:00

14 lines
165 B
Rust

// xfail-boot
fn test_fn() {
type t = fn() -> int;
fn ten() -> int {
ret 10;
}
let t res = { ten };
check (res() == 10);
}
fn main() {
test_fn();
}