2011-09-23 16:58:06 -05:00
|
|
|
|
|
|
|
|
2012-08-01 19:30:05 -05:00
|
|
|
fn id<T: copy send>(t: T) -> T { return t; }
|
2011-09-23 16:58:06 -05:00
|
|
|
|
|
|
|
fn main() {
|
|
|
|
let expected = ~100;
|
|
|
|
let actual = id::<~int>(expected);
|
2011-12-22 19:53:53 -06:00
|
|
|
log(debug, *actual);
|
2011-09-23 16:58:06 -05:00
|
|
|
assert (*expected == *actual);
|
|
|
|
}
|