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

10 lines
163 B
Rust

fn id[T](&T t) -> T { ret t; }
fn main() {
auto expected = @100;
auto actual = id[@int](expected);
log *actual;
assert (*expected == *actual);
}