2015-01-08 04:54:35 -06:00
|
|
|
struct Point { x: isize, y: isize }
|
2014-08-09 22:54:33 -05:00
|
|
|
struct Empty;
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
let origin = Point { x: 0, y: 0 };
|
|
|
|
origin.0;
|
2017-06-30 13:36:51 -05:00
|
|
|
//~^ ERROR no field `0` on type `Point`
|
2014-08-09 22:54:33 -05:00
|
|
|
Empty.0;
|
2017-06-30 13:36:51 -05:00
|
|
|
//~^ ERROR no field `0` on type `Empty`
|
2014-08-09 22:54:33 -05:00
|
|
|
}
|