rust/src/test/run-pass/generic-drop-glue.rs

9 lines
122 B
Rust
Raw Normal View History

2010-06-23 23:03:09 -05:00
fn f[T](T t) {
log "dropping";
}
fn main() {
type r = rec(@int x, @int y);
auto x = rec(x=@10, y=@12);
f[r](x);
}