aboutsummaryrefslogtreecommitdiff
path: root/src/test/compile-fail/rec-missing-fields.rs
blob: 83736d5e1660500f143dc019dbd088b6d89b2c56 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
// -*- rust -*-

// Issue #51.

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

fn main() {
  let point p = rec(x=10);
  log p.y;
}