]> git.lizzy.rs Git - rust.git/blob - tests/ui/suggestions/nested-non-tuple-tuple-struct.stderr
Rollup merge of #106661 - mjguzik:linux_statx, r=Mark-Simulacrum
[rust.git] / tests / ui / suggestions / nested-non-tuple-tuple-struct.stderr
1 error[E0560]: struct `S` has no field named `x`
2   --> $DIR/nested-non-tuple-tuple-struct.rs:8:19
3    |
4 LL | pub struct S(f32, f32);
5    |            - `S` defined here
6 ...
7 LL |     let _x = (S { x: 1.0, y: 2.0 }, S { x: 3.0, y: 4.0 });
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    |               ~~~~~~~~~~~~~~~
14
15 error[E0560]: struct `S` has no field named `y`
16   --> $DIR/nested-non-tuple-tuple-struct.rs:8:27
17    |
18 LL | pub struct S(f32, f32);
19    |            - `S` defined here
20 ...
21 LL |     let _x = (S { x: 1.0, y: 2.0 }, S { x: 3.0, y: 4.0 });
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    |               ~~~~~~~~~~~~~~~
28
29 error[E0560]: struct `S` has no field named `x`
30   --> $DIR/nested-non-tuple-tuple-struct.rs:8:41
31    |
32 LL | pub struct S(f32, f32);
33    |            - `S` defined here
34 ...
35 LL |     let _x = (S { x: 1.0, y: 2.0 }, S { x: 3.0, y: 4.0 });
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    |                                     ~~~~~~~~~~~~~~~
42
43 error[E0560]: struct `S` has no field named `y`
44   --> $DIR/nested-non-tuple-tuple-struct.rs:8:49
45    |
46 LL | pub struct S(f32, f32);
47    |            - `S` defined here
48 ...
49 LL |     let _x = (S { x: 1.0, y: 2.0 }, S { x: 3.0, y: 4.0 });
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    |                                     ~~~~~~~~~~~~~~~
56
57 error[E0559]: variant `E::V` has no field named `x`
58   --> $DIR/nested-non-tuple-tuple-struct.rs:13:22
59    |
60 LL |     V(f32, f32),
61    |     - `E::V` defined here
62 ...
63 LL |     let _y = (E::V { x: 1.0, y: 2.0 }, E::V { x: 3.0, y: 4.0 });
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    |               ~~~~~~~~~~~~~~~~~~
70
71 error[E0559]: variant `E::V` has no field named `y`
72   --> $DIR/nested-non-tuple-tuple-struct.rs:13:30
73    |
74 LL |     V(f32, f32),
75    |     - `E::V` defined here
76 ...
77 LL |     let _y = (E::V { x: 1.0, y: 2.0 }, E::V { x: 3.0, y: 4.0 });
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    |               ~~~~~~~~~~~~~~~~~~
84
85 error[E0559]: variant `E::V` has no field named `x`
86   --> $DIR/nested-non-tuple-tuple-struct.rs:13:47
87    |
88 LL |     V(f32, f32),
89    |     - `E::V` defined here
90 ...
91 LL |     let _y = (E::V { x: 1.0, y: 2.0 }, E::V { x: 3.0, y: 4.0 });
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    |                                        ~~~~~~~~~~~~~~~~~~
98
99 error[E0559]: variant `E::V` has no field named `y`
100   --> $DIR/nested-non-tuple-tuple-struct.rs:13:55
101    |
102 LL |     V(f32, f32),
103    |     - `E::V` defined here
104 ...
105 LL |     let _y = (E::V { x: 1.0, y: 2.0 }, E::V { x: 3.0, y: 4.0 });
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    |                                        ~~~~~~~~~~~~~~~~~~
112
113 error: aborting due to 8 previous errors
114
115 Some errors have detailed explanations: E0559, E0560.
116 For more information about an error, try `rustc --explain E0559`.