2010-06-23 21:03:09 -07:00
|
|
|
// -*- rust -*-
|
|
|
|
|
2011-01-10 14:53:20 -08:00
|
|
|
// error-pattern: record
|
|
|
|
|
2011-07-27 14:19:39 +02:00
|
|
|
type point = {x: int, y: int};
|
2010-06-23 21:03:09 -07:00
|
|
|
|
|
|
|
fn main() {
|
2011-07-27 14:19:39 +02:00
|
|
|
let origin: point = {x: 0, y: 0};
|
2010-06-23 21:03:09 -07:00
|
|
|
|
2011-07-27 14:19:39 +02:00
|
|
|
let origin3d: point = {z: 0 with origin};
|
|
|
|
}
|