PageRenderTime 20ms CodeModel.GetById 12ms app.highlight 4ms RepoModel.GetById 1ms app.codeStats 1ms

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

http://github.com/jruderman/rust
Rust | 10 lines | 7 code | 3 blank | 0 comment | 1 complexity | ed5cc6876e0bd4f1da9a61d0f19df799 MD5 | raw file
 1
 2
 3fn id<T: copy>(t: T) -> T { return t; }
 4
 5fn main() {
 6    let expected = @100;
 7    let actual = id::<@int>(expected);
 8    log(debug, *actual);
 9    assert (*expected == *actual);
10}