summaryrefslogtreecommitdiffstats
path: root/src/test/ui/generics/generic-alias-unique.rs
blob: fc138398634d5182977f167e7b1c96bdc19e39a4 (plain)
1
2
3
4
5
6
7
8
9
10
// run-pass

fn id<T:Send>(t: T) -> T { return t; }

pub fn main() {
    let expected: Box<_> = Box::new(100);
    let actual = id::<Box<isize>>(expected.clone());
    println!("{}", *actual);
    assert_eq!(*expected, *actual);
}