rust/src/test/run-pass/generic-alias-unique.rs
2012-08-01 19:16:06 -07:00

11 lines
186 B
Rust

fn id<T: copy send>(t: T) -> T { return t; }
fn main() {
let expected = ~100;
let actual = id::<~int>(expected);
log(debug, *actual);
assert (*expected == *actual);
}