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


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

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