rust/src/test/run-pass/generic-fn-unique.rs
2012-08-01 19:16:06 -07:00

5 lines
88 B
Rust

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