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

6 lines
80 B
Rust

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