60ae1590af
And remove support for the old syntax
12 lines
159 B
Rust
12 lines
159 B
Rust
fn f<T: copy>(t: T) -> T {
|
|
let t1 = t;
|
|
t1
|
|
}
|
|
|
|
fn main() {
|
|
let t = f(~100);
|
|
assert t == ~100;
|
|
let t = f(~@[100]);
|
|
assert t == ~@[100];
|
|
}
|