rust/src/test/run-pass/generic-alias-box.rs

11 lines
163 B
Rust
Raw Normal View History

fn id<T>(t: &T) -> T { ret t; }
fn main() {
2011-07-27 07:19:39 -05:00
let expected = @100;
let actual = id[@int](expected);
log *actual;
assert (*expected == *actual);
}