summaryrefslogtreecommitdiffstats
path: root/tests/ui/generics/generic-fn-unique.rs
blob: 7e246bce9a10c86b75f8d273966c53e91bad52f0 (plain)
1
2
3
4
5
6
7
8
// run-pass

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

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