about summary refs log tree commit diff
path: root/src/test/compile-fail/rec-missing-fields.rs
blob: 50bcf32dd7f5f3d553494defad9119332e9a1eee (plain)
1
2
3
4
5
6
7
8
9
// -*- rust -*-

// error-pattern: mismatched types

// Issue #51.

type point = {x: int, y: int};

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