rust/src/test/run-pass/generic-fn-unique.rs

5 lines
88 B
Rust

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