aboutsummaryrefslogtreecommitdiff
path: root/src/test/run-pass/generic-alias-box.rs
blob: 187717a1190835d4e72da0a65fe2e6927c858c80 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
// xfail-boot
// xfail-stage0

fn id[T](&T t) -> T {
  ret t;
}

fn main() {
  auto expected = @100;
  auto actual = id[@int](expected);
  log *actual;
  check (*expected == *actual);
}