rust/src/test/run-pass/generic-fn-box.rs
2011-07-27 15:54:33 +02:00

5 lines
71 B
Rust

fn f[T](x: @T) -> @T { ret x; }
fn main() { let x = f(@3); log *x; }