]> git.lizzy.rs Git - rust.git/blob - src/test/ui/suggestions/nested-non-tuple-tuple-struct.rs
Override rustc version in ui and mir-opt tests to get stable hashes
[rust.git] / src / test / ui / suggestions / nested-non-tuple-tuple-struct.rs
1 pub struct S(f32, f32);
2
3 pub enum E {
4     V(f32, f32),
5 }
6
7 fn main() {
8     let _x = (S { x: 1.0, y: 2.0 }, S { x: 3.0, y: 4.0 });
9     //~^ ERROR struct `S` has no field named `x`
10     //~| ERROR struct `S` has no field named `y`
11     //~| ERROR struct `S` has no field named `x`
12     //~| ERROR struct `S` has no field named `y`
13     let _y = (E::V { x: 1.0, y: 2.0 }, E::V { x: 3.0, y: 4.0 });
14     //~^ ERROR variant `E::V` has no field named `x`
15     //~| ERROR variant `E::V` has no field named `y`
16     //~| ERROR variant `E::V` has no field named `x`
17     //~| ERROR variant `E::V` has no field named `y`
18 }