summary refs log tree commit diff
path: root/src/test/ui/generics/generic-fn-unique.rs
blob: 6cda1c3dc15e1f3c98edbe2ec92505848a2aa079 (plain)
1
2
3
4
5
6
// run-pass
#![feature(box_syntax)]

fn f<T>(x: Box<T>) -> Box<T> { return x; }

pub fn main() { let x = f(box 3); println!("{}", *x); }