rust/src/test/run-pass/generic-alias-box.rs
Marijn Haverbeke 60ae1590af Switch to new param kind bound syntax
And remove support for the old syntax
2012-01-05 15:50:02 +01:00

11 lines
178 B
Rust

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);
}