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