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