12 lines
147 B
Rust
12 lines
147 B
Rust
|
|
|
|
|
|
// -*- rust -*-
|
|
fn f(n: int) -> int { ret n; }
|
|
|
|
fn main() {
|
|
let g: fn@() -> int = bind f(10);
|
|
let i: int = g();
|
|
assert (i == 10);
|
|
}
|