summary refs log tree commit diff
path: root/src/test/ui/unique/unique-assign-generic.rs
blob: 2d62ce59ad01257903878ca6dc9e4a895d5b63ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// run-pass
#![feature(box_syntax)]

fn f<T>(t: T) -> T {
    let t1 = t;
    t1
}

pub fn main() {
    let t = f::<Box<_>>(box 100);
    assert_eq!(t, box 100);
}