]> git.lizzy.rs Git - rust.git/blob - src/test/run-pass/fn-lval.rs
deprecate fn exprs and the fn() type, preferring fn@ and native fn
[rust.git] / src / test / run-pass / fn-lval.rs
1
2
3
4 // -*- rust -*-
5 fn foo(f: native fn(int) -> int) { }
6
7 fn id(x: int) -> int { ret x; }
8
9 fn main() { foo(id); }