rust/src/test/run-pass/fn-lval.rs
2012-08-01 19:16:06 -07:00

10 lines
116 B
Rust

// -*- rust -*-
fn foo(f: extern fn(int) -> int) { }
fn id(x: int) -> int { return x; }
fn main() { foo(id); }