PageRenderTime 8ms CodeModel.GetById 2ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 1ms

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

http://github.com/jruderman/rust
Rust | 9 lines | 3 code | 5 blank | 1 comment | 0 complexity | a3cf1ea8fd6c08bfeaa1b612d83e9adb MD5 | raw file
1
2
3
4// -*- rust -*-
5fn foo(f: extern fn(int) -> int) { }
6
7fn id(x: int) -> int { return x; }
8
9fn main() { foo(id); }