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

/src/test/run-pass/issue-333.rs

http://github.com/jruderman/rust
Rust | 5 lines | 3 code | 2 blank | 0 comment | 1 complexity | b14d3ec2e80fde285a6ad30daa798f9c MD5 | raw file
1fn quux<T: copy>(x: T) -> T { let f = id::<T>; return f(x); }
2
3fn id<T: copy>(x: T) -> T { return x; }
4
5fn main() { assert (quux(10) == 10); }