rust/src/test/run-pass/fn-lval.rs

10 lines
113 B
Rust

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