summary refs log tree commit diff
path: root/src/test/compile-fail/rec-missing-fields.rs
blob: fad12e24a7cdd5800c2ee742ae30ca71e90a6c96 (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(debug, p.y); }