blob: c478e1c67695d66745ffdfebee62f9426e36dfb3 (
plain)
1
2
3
4
5
6
7
8
9
10
|
struct Point { x: isize, y: isize }
struct Empty;
fn main() {
let origin = Point { x: 0, y: 0 };
origin.0;
//~^ ERROR no field `0` on type `Point`
Empty.0;
//~^ ERROR no field `0` on type `Empty`
}
|