about summary refs log tree commit diff
path: root/src/test/run-pass/generic-alias-unique.rs
blob: 1ca044ef1621d1f5aeb82540ba9e79bec7f9761c (plain)
1
2
3
4
5
6
7
8
9
10


fn id<send T>(t: T) -> T { ret t; }

fn main() {
    let expected = ~100;
    let actual = id::<~int>(expected);
    log *actual;
    assert (*expected == *actual);
}