11 lines
137 B
Rust
11 lines
137 B
Rust
|
|
|
|
|
|
// -*- rust -*-
|
|
fn f() -> int { ret 42; }
|
|
|
|
fn main() {
|
|
let fn() -> int g = bind f();
|
|
let int i = g();
|
|
assert (i == 42);
|
|
} |