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

10 lines
155 B
Rust
Raw Normal View History

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