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

// error-pattern: mismatched types

// Issue #51.

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

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