rust/src/test/run-pass/generic-fn-unique.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

5 lines
85 B
Rust

fn f<T: copy>(x: ~T) -> ~T { ret x; }
fn main() { let x = f(~3); log(debug, *x); }