]> git.lizzy.rs Git - rust.git/blob - src/test/ui/tuple/tuple-index-not-tuple.rs
Merge commit 'b7f3f7f6082679da2da9a0b3faf1b5adef3afd3b' into clippyup
[rust.git] / src / test / ui / tuple / tuple-index-not-tuple.rs
1 struct Point { x: isize, y: isize }
2 struct Empty;
3
4 fn main() {
5     let origin = Point { x: 0, y: 0 };
6     origin.0;
7     //~^ ERROR no field `0` on type `Point`
8     Empty.0;
9     //~^ ERROR no field `0` on type `Empty`
10 }