rust/src/test/run-pass/generic-fn-box.rs
2011-05-14 21:05:22 -04:00

10 lines
83 B
Rust

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