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

10 lines
124 B
Rust

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