rust/src/test/run-pass/generic-fn-unique.rs
2011-10-25 15:56:55 +02:00

5 lines
71 B
Rust

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