147a2d655f
This reverts commit d08b443fffb1181d8d45ae5d061412f202dd4118.
12 lines
141 B
Rust
12 lines
141 B
Rust
// -*- rust -*-
|
|
|
|
fn f(int n) -> int {
|
|
ret n;
|
|
}
|
|
|
|
fn main() {
|
|
let fn(int) -> int g = bind f(_);
|
|
let int i = g(42);
|
|
assert (i == 42);
|
|
}
|