aboutsummaryrefslogtreecommitdiff
path: root/src/test/run-pass/readalias.rs
blob: 57dcb3b2d077e93c57a0535279dd8a497b79f63f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
// -*- rust -*-

type point = rec(int x, int y, int z);

fn f(&point p) {
  assert (p.z == 12);
}

fn main() {
  let point x = rec(x=10, y=11, z=12);
  f(x);
}