about summary refs log tree commit diff
path: root/tests/ui/generics/generic-alias-unique.rs
blob: 571907ea411a0084a0897f732c42f957a5c75311 (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);
}