60ae1590af
And remove support for the old syntax
11 lines
178 B
Rust
11 lines
178 B
Rust
|
|
|
|
fn id<T: send>(t: T) -> T { ret t; }
|
|
|
|
fn main() {
|
|
let expected = ~100;
|
|
let actual = id::<~int>(expected);
|
|
log(debug, *actual);
|
|
assert (*expected == *actual);
|
|
}
|