fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
3.9 KiB116 linesraw
1error[E0560]: struct `S` has no field named `x`
2  --> $DIR/nested-non-tuple-tuple-struct.rs:8:19
3   |
4LL | pub struct S(f32, f32);
5   |            - `S` defined here
6...
7LL |     let _x = (S { x: 1.0, y: 2.0 }, S { x: 3.0, y: 4.0 });
8   |                   ^ field does not exist
9   |
10help: `S` is a tuple struct, use the appropriate syntax
11   |
12LL |     let _x = (S(/* fields */), S { x: 3.0, y: 4.0 });
13   |               ~~~~~~~~~~~~~~~
14
15error[E0560]: struct `S` has no field named `y`
16  --> $DIR/nested-non-tuple-tuple-struct.rs:8:27
17   |
18LL | pub struct S(f32, f32);
19   |            - `S` defined here
20...
21LL |     let _x = (S { x: 1.0, y: 2.0 }, S { x: 3.0, y: 4.0 });
22   |                           ^ field does not exist
23   |
24help: `S` is a tuple struct, use the appropriate syntax
25   |
26LL |     let _x = (S(/* fields */), S { x: 3.0, y: 4.0 });
27   |               ~~~~~~~~~~~~~~~
28
29error[E0560]: struct `S` has no field named `x`
30  --> $DIR/nested-non-tuple-tuple-struct.rs:8:41
31   |
32LL | pub struct S(f32, f32);
33   |            - `S` defined here
34...
35LL |     let _x = (S { x: 1.0, y: 2.0 }, S { x: 3.0, y: 4.0 });
36   |                                         ^ field does not exist
37   |
38help: `S` is a tuple struct, use the appropriate syntax
39   |
40LL |     let _x = (S { x: 1.0, y: 2.0 }, S(/* fields */));
41   |                                     ~~~~~~~~~~~~~~~
42
43error[E0560]: struct `S` has no field named `y`
44  --> $DIR/nested-non-tuple-tuple-struct.rs:8:49
45   |
46LL | pub struct S(f32, f32);
47   |            - `S` defined here
48...
49LL |     let _x = (S { x: 1.0, y: 2.0 }, S { x: 3.0, y: 4.0 });
50   |                                                 ^ field does not exist
51   |
52help: `S` is a tuple struct, use the appropriate syntax
53   |
54LL |     let _x = (S { x: 1.0, y: 2.0 }, S(/* fields */));
55   |                                     ~~~~~~~~~~~~~~~
56
57error[E0559]: variant `E::V` has no field named `x`
58  --> $DIR/nested-non-tuple-tuple-struct.rs:13:22
59   |
60LL |     V(f32, f32),
61   |     - `E::V` defined here
62...
63LL |     let _y = (E::V { x: 1.0, y: 2.0 }, E::V { x: 3.0, y: 4.0 });
64   |                      ^ field does not exist
65   |
66help: `E::V` is a tuple variant, use the appropriate syntax
67   |
68LL |     let _y = (E::V(/* fields */), E::V { x: 3.0, y: 4.0 });
69   |               ~~~~~~~~~~~~~~~~~~
70
71error[E0559]: variant `E::V` has no field named `y`
72  --> $DIR/nested-non-tuple-tuple-struct.rs:13:30
73   |
74LL |     V(f32, f32),
75   |     - `E::V` defined here
76...
77LL |     let _y = (E::V { x: 1.0, y: 2.0 }, E::V { x: 3.0, y: 4.0 });
78   |                              ^ field does not exist
79   |
80help: `E::V` is a tuple variant, use the appropriate syntax
81   |
82LL |     let _y = (E::V(/* fields */), E::V { x: 3.0, y: 4.0 });
83   |               ~~~~~~~~~~~~~~~~~~
84
85error[E0559]: variant `E::V` has no field named `x`
86  --> $DIR/nested-non-tuple-tuple-struct.rs:13:47
87   |
88LL |     V(f32, f32),
89   |     - `E::V` defined here
90...
91LL |     let _y = (E::V { x: 1.0, y: 2.0 }, E::V { x: 3.0, y: 4.0 });
92   |                                               ^ field does not exist
93   |
94help: `E::V` is a tuple variant, use the appropriate syntax
95   |
96LL |     let _y = (E::V { x: 1.0, y: 2.0 }, E::V(/* fields */));
97   |                                        ~~~~~~~~~~~~~~~~~~
98
99error[E0559]: variant `E::V` has no field named `y`
100  --> $DIR/nested-non-tuple-tuple-struct.rs:13:55
101   |
102LL |     V(f32, f32),
103   |     - `E::V` defined here
104...
105LL |     let _y = (E::V { x: 1.0, y: 2.0 }, E::V { x: 3.0, y: 4.0 });
106   |                                                       ^ field does not exist
107   |
108help: `E::V` is a tuple variant, use the appropriate syntax
109   |
110LL |     let _y = (E::V { x: 1.0, y: 2.0 }, E::V(/* fields */));
111   |                                        ~~~~~~~~~~~~~~~~~~
112
113error: aborting due to 8 previous errors
114
115Some errors have detailed explanations: E0559, E0560.
116For more information about an error, try `rustc --explain E0559`.