rust/src/test/run-pass/unique-assign-generic.rs
Marijn Haverbeke 60ae1590af Switch to new param kind bound syntax
And remove support for the old syntax
2012-01-05 15:50:02 +01:00

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];
}