@@ -5,10 +5,12 @@ LL | pub struct S(f32, f32);
5
5
| - `S` defined here
6
6
...
7
7
LL | 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
+ | ~~~~~~~~~~~~~~~
12
14
13
15
error[E0560]: struct `S` has no field named `y`
14
16
--> $DIR/nested-non-tuple-tuple-struct.rs:8:27
@@ -17,10 +19,12 @@ LL | pub struct S(f32, f32);
17
19
| - `S` defined here
18
20
...
19
21
LL | 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
+ | ~~~~~~~~~~~~~~~
24
28
25
29
error[E0560]: struct `S` has no field named `x`
26
30
--> $DIR/nested-non-tuple-tuple-struct.rs:8:41
@@ -29,10 +33,12 @@ LL | pub struct S(f32, f32);
29
33
| - `S` defined here
30
34
...
31
35
LL | 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
+ | ~~~~~~~~~~~~~~~
36
42
37
43
error[E0560]: struct `S` has no field named `y`
38
44
--> $DIR/nested-non-tuple-tuple-struct.rs:8:49
@@ -41,10 +47,12 @@ LL | pub struct S(f32, f32);
41
47
| - `S` defined here
42
48
...
43
49
LL | 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
+ | ~~~~~~~~~~~~~~~
48
56
49
57
error[E0559]: variant `E::V` has no field named `x`
50
58
--> $DIR/nested-non-tuple-tuple-struct.rs:13:22
@@ -53,10 +61,12 @@ LL | V(f32, f32),
53
61
| - `E::V` defined here
54
62
...
55
63
LL | 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
+ | ~~~~~~~~~~~~~~~~~~
60
70
61
71
error[E0559]: variant `E::V` has no field named `y`
62
72
--> $DIR/nested-non-tuple-tuple-struct.rs:13:30
@@ -65,10 +75,12 @@ LL | V(f32, f32),
65
75
| - `E::V` defined here
66
76
...
67
77
LL | 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
+ | ~~~~~~~~~~~~~~~~~~
72
84
73
85
error[E0559]: variant `E::V` has no field named `x`
74
86
--> $DIR/nested-non-tuple-tuple-struct.rs:13:47
@@ -77,10 +89,12 @@ LL | V(f32, f32),
77
89
| - `E::V` defined here
78
90
...
79
91
LL | 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
+ | ~~~~~~~~~~~~~~~~~~
84
98
85
99
error[E0559]: variant `E::V` has no field named `y`
86
100
--> $DIR/nested-non-tuple-tuple-struct.rs:13:55
@@ -89,10 +103,12 @@ LL | V(f32, f32),
89
103
| - `E::V` defined here
90
104
...
91
105
LL | 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
+ | ~~~~~~~~~~~~~~~~~~
96
112
97
113
error: aborting due to 8 previous errors
98
114
0 commit comments