12 lines
139 B
Rust
12 lines
139 B
Rust
|
|
|
|
|
|
// -*- rust -*-
|
|
fn f() -> int { ret 42; }
|
|
|
|
fn main() {
|
|
let g: native fn() -> int = f;
|
|
let i: int = g();
|
|
assert (i == 42);
|
|
}
|