@@ -5,10 +5,12 @@ LL | pub struct S(f32, f32);
55 | - `S` defined here
66...
77LL | let _x = (S { x: 1.0, y: 2.0 }, S { x: 3.0, y: 4.0 });
8- | ----^---------------
9- | | |
10- | | field does not exist
11- | help: `S` is a tuple struct, use the appropriate syntax: `S(/* fields */)`
8+ | ^ field does not exist
9+ |
10+ help: `S` is a tuple struct, use the appropriate syntax
11+ |
12+ LL | let _x = (S(/* fields */), S { x: 3.0, y: 4.0 });
13+ | ~~~~~~~~~~~~~~~
1214
1315error[E0560]: struct `S` has no field named `y`
1416 --> $DIR/nested-non-tuple-tuple-struct.rs:8:27
@@ -17,10 +19,12 @@ LL | pub struct S(f32, f32);
1719 | - `S` defined here
1820...
1921LL | let _x = (S { x: 1.0, y: 2.0 }, S { x: 3.0, y: 4.0 });
20- | ------------^-------
21- | | |
22- | | field does not exist
23- | help: `S` is a tuple struct, use the appropriate syntax: `S(/* fields */)`
22+ | ^ field does not exist
23+ |
24+ help: `S` is a tuple struct, use the appropriate syntax
25+ |
26+ LL | let _x = (S(/* fields */), S { x: 3.0, y: 4.0 });
27+ | ~~~~~~~~~~~~~~~
2428
2529error[E0560]: struct `S` has no field named `x`
2630 --> $DIR/nested-non-tuple-tuple-struct.rs:8:41
@@ -29,10 +33,12 @@ LL | pub struct S(f32, f32);
2933 | - `S` defined here
3034...
3135LL | let _x = (S { x: 1.0, y: 2.0 }, S { x: 3.0, y: 4.0 });
32- | ----^---------------
33- | | |
34- | | field does not exist
35- | help: `S` is a tuple struct, use the appropriate syntax: `S(/* fields */)`
36+ | ^ field does not exist
37+ |
38+ help: `S` is a tuple struct, use the appropriate syntax
39+ |
40+ LL | let _x = (S { x: 1.0, y: 2.0 }, S(/* fields */));
41+ | ~~~~~~~~~~~~~~~
3642
3743error[E0560]: struct `S` has no field named `y`
3844 --> $DIR/nested-non-tuple-tuple-struct.rs:8:49
@@ -41,10 +47,12 @@ LL | pub struct S(f32, f32);
4147 | - `S` defined here
4248...
4349LL | let _x = (S { x: 1.0, y: 2.0 }, S { x: 3.0, y: 4.0 });
44- | ------------^-------
45- | | |
46- | | field does not exist
47- | help: `S` is a tuple struct, use the appropriate syntax: `S(/* fields */)`
50+ | ^ field does not exist
51+ |
52+ help: `S` is a tuple struct, use the appropriate syntax
53+ |
54+ LL | let _x = (S { x: 1.0, y: 2.0 }, S(/* fields */));
55+ | ~~~~~~~~~~~~~~~
4856
4957error[E0559]: variant `E::V` has no field named `x`
5058 --> $DIR/nested-non-tuple-tuple-struct.rs:13:22
@@ -53,10 +61,12 @@ LL | V(f32, f32),
5361 | - `E::V` defined here
5462...
5563LL | let _y = (E::V { x: 1.0, y: 2.0 }, E::V { x: 3.0, y: 4.0 });
56- | -------^---------------
57- | | |
58- | | field does not exist
59- | help: `E::V` is a tuple variant, use the appropriate syntax: `E::V(/* fields */)`
64+ | ^ field does not exist
65+ |
66+ help: `E::V` is a tuple variant, use the appropriate syntax
67+ |
68+ LL | let _y = (E::V(/* fields */), E::V { x: 3.0, y: 4.0 });
69+ | ~~~~~~~~~~~~~~~~~~
6070
6171error[E0559]: variant `E::V` has no field named `y`
6272 --> $DIR/nested-non-tuple-tuple-struct.rs:13:30
@@ -65,10 +75,12 @@ LL | V(f32, f32),
6575 | - `E::V` defined here
6676...
6777LL | let _y = (E::V { x: 1.0, y: 2.0 }, E::V { x: 3.0, y: 4.0 });
68- | ---------------^-------
69- | | |
70- | | field does not exist
71- | help: `E::V` is a tuple variant, use the appropriate syntax: `E::V(/* fields */)`
78+ | ^ field does not exist
79+ |
80+ help: `E::V` is a tuple variant, use the appropriate syntax
81+ |
82+ LL | let _y = (E::V(/* fields */), E::V { x: 3.0, y: 4.0 });
83+ | ~~~~~~~~~~~~~~~~~~
7284
7385error[E0559]: variant `E::V` has no field named `x`
7486 --> $DIR/nested-non-tuple-tuple-struct.rs:13:47
@@ -77,10 +89,12 @@ LL | V(f32, f32),
7789 | - `E::V` defined here
7890...
7991LL | let _y = (E::V { x: 1.0, y: 2.0 }, E::V { x: 3.0, y: 4.0 });
80- | -------^---------------
81- | | |
82- | | field does not exist
83- | help: `E::V` is a tuple variant, use the appropriate syntax: `E::V(/* fields */)`
92+ | ^ field does not exist
93+ |
94+ help: `E::V` is a tuple variant, use the appropriate syntax
95+ |
96+ LL | let _y = (E::V { x: 1.0, y: 2.0 }, E::V(/* fields */));
97+ | ~~~~~~~~~~~~~~~~~~
8498
8599error[E0559]: variant `E::V` has no field named `y`
86100 --> $DIR/nested-non-tuple-tuple-struct.rs:13:55
@@ -89,10 +103,12 @@ LL | V(f32, f32),
89103 | - `E::V` defined here
90104...
91105LL | let _y = (E::V { x: 1.0, y: 2.0 }, E::V { x: 3.0, y: 4.0 });
92- | ---------------^-------
93- | | |
94- | | field does not exist
95- | help: `E::V` is a tuple variant, use the appropriate syntax: `E::V(/* fields */)`
106+ | ^ field does not exist
107+ |
108+ help: `E::V` is a tuple variant, use the appropriate syntax
109+ |
110+ LL | let _y = (E::V { x: 1.0, y: 2.0 }, E::V(/* fields */));
111+ | ~~~~~~~~~~~~~~~~~~
96112
97113error: aborting due to 8 previous errors
98114
0 commit comments