blob: c772c0daa18ebf8a45b59fab34a2ae0f2df4034f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
struct Point(i32, i32);
fn main() {
let origin = Point(0, 0);
origin.0;
origin.1;
origin.2;
//~^ ERROR no field `2` on type `Point`
let tuple = (0, 0);
tuple.0;
tuple.1;
tuple.2;
//~^ ERROR no field `2` on type `({integer}, {integer})`
}
|