PageRenderTime 4ms CodeModel.GetById 1ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/src/test/run-pass/generic-fn-box.rs

http://github.com/jruderman/rust
Rust | 5 lines | 2 code | 3 blank | 0 comment | 0 complexity | ceac9d83e777b3917ee0ecbe1e32321a MD5 | raw file
1
2
3fn f<T>(x: @T) -> @T { return x; }
4
5fn main() { let x = f(@3); log(debug, *x); }