summaryrefslogtreecommitdiffstats
path: root/tests/ui/box/unit/unique-assign-generic.rs
blob: d4932d8333ab7d3c4a9365208e8777182ca73124 (plain)
1
2
3
4
5
6
7
8
9
10
11
// run-pass

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

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