@@ -9,8 +9,8 @@ LL | let _x = (S { x: 1.0, y: 2.0 }, S { x: 3.0, y: 4.0 });
9
9
|
10
10
help: `S` is a tuple struct, use the appropriate syntax
11
11
|
12
- LL | let _x = (S(/* fields */), S { x: 3.0, y: 4.0 });
13
- | ~~~~~~~~~~~~~~~
12
+ LL | let _x = (S(/* f32 */, /* f32 */), S { x: 3.0, y: 4.0 });
13
+ | ~~~~~~~~~~~~~~~~~~~~~~~
14
14
15
15
error[E0560]: struct `S` has no field named `y`
16
16
--> $DIR/nested-non-tuple-tuple-struct.rs:8:27
@@ -23,8 +23,8 @@ LL | let _x = (S { x: 1.0, y: 2.0 }, S { x: 3.0, y: 4.0 });
23
23
|
24
24
help: `S` is a tuple struct, use the appropriate syntax
25
25
|
26
- LL | let _x = (S(/* fields */), S { x: 3.0, y: 4.0 });
27
- | ~~~~~~~~~~~~~~~
26
+ LL | let _x = (S(/* f32 */, /* f32 */), S { x: 3.0, y: 4.0 });
27
+ | ~~~~~~~~~~~~~~~~~~~~~~~
28
28
29
29
error[E0560]: struct `S` has no field named `x`
30
30
--> $DIR/nested-non-tuple-tuple-struct.rs:8:41
@@ -37,8 +37,8 @@ LL | let _x = (S { x: 1.0, y: 2.0 }, S { x: 3.0, y: 4.0 });
37
37
|
38
38
help: `S` is a tuple struct, use the appropriate syntax
39
39
|
40
- LL | let _x = (S { x: 1.0, y: 2.0 }, S(/* fields */));
41
- | ~~~~~~~~~~~~~~~
40
+ LL | let _x = (S { x: 1.0, y: 2.0 }, S(/* f32 */, /* f32 */));
41
+ | ~~~~~~~~~~~~~~~~~~~~~~~
42
42
43
43
error[E0560]: struct `S` has no field named `y`
44
44
--> $DIR/nested-non-tuple-tuple-struct.rs:8:49
@@ -51,8 +51,8 @@ LL | let _x = (S { x: 1.0, y: 2.0 }, S { x: 3.0, y: 4.0 });
51
51
|
52
52
help: `S` is a tuple struct, use the appropriate syntax
53
53
|
54
- LL | let _x = (S { x: 1.0, y: 2.0 }, S(/* fields */));
55
- | ~~~~~~~~~~~~~~~
54
+ LL | let _x = (S { x: 1.0, y: 2.0 }, S(/* f32 */, /* f32 */));
55
+ | ~~~~~~~~~~~~~~~~~~~~~~~
56
56
57
57
error[E0559]: variant `E::V` has no field named `x`
58
58
--> $DIR/nested-non-tuple-tuple-struct.rs:13:22
@@ -65,8 +65,8 @@ LL | let _y = (E::V { x: 1.0, y: 2.0 }, E::V { x: 3.0, y: 4.0 });
65
65
|
66
66
help: `E::V` is a tuple variant, use the appropriate syntax
67
67
|
68
- LL | let _y = (E::V(/* fields */), E::V { x: 3.0, y: 4.0 });
69
- | ~~~~~~~~~~~~~~~~~~
68
+ LL | let _y = (E::V(/* f32 */, /* f32 */), E::V { x: 3.0, y: 4.0 });
69
+ | ~~~~ ~~~~~~~~~~~~~~~~~~
70
70
71
71
error[E0559]: variant `E::V` has no field named `y`
72
72
--> $DIR/nested-non-tuple-tuple-struct.rs:13:30
@@ -79,8 +79,8 @@ LL | let _y = (E::V { x: 1.0, y: 2.0 }, E::V { x: 3.0, y: 4.0 });
79
79
|
80
80
help: `E::V` is a tuple variant, use the appropriate syntax
81
81
|
82
- LL | let _y = (E::V(/* fields */), E::V { x: 3.0, y: 4.0 });
83
- | ~~~~~~~~~~~~~~~~~~
82
+ LL | let _y = (E::V(/* f32 */, /* f32 */), E::V { x: 3.0, y: 4.0 });
83
+ | ~~~~ ~~~~~~~~~~~~~~~~~~
84
84
85
85
error[E0559]: variant `E::V` has no field named `x`
86
86
--> $DIR/nested-non-tuple-tuple-struct.rs:13:47
@@ -93,8 +93,8 @@ LL | let _y = (E::V { x: 1.0, y: 2.0 }, E::V { x: 3.0, y: 4.0 });
93
93
|
94
94
help: `E::V` is a tuple variant, use the appropriate syntax
95
95
|
96
- LL | let _y = (E::V { x: 1.0, y: 2.0 }, E::V(/* fields */));
97
- | ~~~~~~~~~~~~~~~~~~
96
+ LL | let _y = (E::V { x: 1.0, y: 2.0 }, E::V(/* f32 */, /* f32 */));
97
+ | ~~~~ ~~~~~~~~~~~~~~~~~~
98
98
99
99
error[E0559]: variant `E::V` has no field named `y`
100
100
--> $DIR/nested-non-tuple-tuple-struct.rs:13:55
@@ -107,8 +107,8 @@ LL | let _y = (E::V { x: 1.0, y: 2.0 }, E::V { x: 3.0, y: 4.0 });
107
107
|
108
108
help: `E::V` is a tuple variant, use the appropriate syntax
109
109
|
110
- LL | let _y = (E::V { x: 1.0, y: 2.0 }, E::V(/* fields */));
111
- | ~~~~~~~~~~~~~~~~~~
110
+ LL | let _y = (E::V { x: 1.0, y: 2.0 }, E::V(/* f32 */, /* f32 */));
111
+ | ~~~~ ~~~~~~~~~~~~~~~~~~
112
112
113
113
error: aborting due to 8 previous errors
114
114
0 commit comments