aboutsummaryrefslogtreecommitdiff
path: root/src/test/run-pass/generic-drop-glue.rs
blob: 6cf16802f5a83d18677c8b18171c2f1ea60fe78c (plain) (blame)
1
2
3
4
5
6
7
8
9
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);
}