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

http://github.com/jruderman/rust · Rust · 5 lines · 2 code · 3 blank · 0 comment · 0 complexity · ceac9d83e777b3917ee0ecbe1e32321a MD5 · raw file

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