rust/src/test/compile-fail/rec-missing-fields.rs

10 lines
155 B
Rust
Raw Normal View History

2010-06-23 23:03:09 -05:00
// -*- rust -*-
// error-pattern: mismatched types
2010-06-23 23:03:09 -05:00
// Issue #51.
2011-07-27 07:19:39 -05:00
type point = {x: int, y: int};
2010-06-23 23:03:09 -05:00
fn main() { let p: point = {x: 10}; log(debug, p.y); }