2010-06-23 21:03:09 -07:00
|
|
|
// -*- rust -*-
|
|
|
|
|
2011-01-10 14:53:20 -08:00
|
|
|
// 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
|
|
|
|
2011-12-22 17:53:53 -08:00
|
|
|
fn main() { let p: point = {x: 10}; log(debug, p.y); }
|