]> git.lizzy.rs Git - rust.git/blob - src/test/ui/generics/generic-fn-unique.rs
Sync rust-lang/portable-simd@03f6fbb21e6050da2a05b3ce8f480c020b384916
[rust.git] / src / test / ui / generics / generic-fn-unique.rs
1 // run-pass
2
3 fn f<T>(x: Box<T>) -> Box<T> { return x; }
4
5 pub fn main() {
6     let x = f(Box::new(3));
7     println!("{}", *x);
8 }