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