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


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

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