1 2 3 4 5 6 7 8 9 10 11
// -*- rust -*- fn f() -> int { ret 42; } fn main() { let g: fn@() -> int = bind f(); let i: int = g(); assert (i == 42); }