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

error[E0560]: struct `S` has no field named `y`
  --> $DIR/nested-non-tuple-tuple-struct.rs:8:27
   |
LL | pub struct S(f32, f32);
   |            - `S` defined here
...
LL |     let _x = (S { x: 1.0, y: 2.0 }, S { x: 3.0, y: 4.0 });
   |                           ^ field does not exist
   |
help: `S` is a tuple struct, use the appropriate syntax
   |
LL |     let _x = (S(/* fields */), S { x: 3.0, y: 4.0 });
   |               ~~~~~~~~~~~~~~~

error[E0560]: struct `S` has no field named `x`
  --> $DIR/nested-non-tuple-tuple-struct.rs:8:41
   |
LL | pub struct S(f32, f32);
   |            - `S` defined here
...
LL |     let _x = (S { x: 1.0, y: 2.0 }, S { x: 3.0, y: 4.0 });
   |                                         ^ field does not exist
   |
help: `S` is a tuple struct, use the appropriate syntax
   |
LL |     let _x = (S { x: 1.0, y: 2.0 }, S(/* fields */));
   |                                     ~~~~~~~~~~~~~~~

error[E0560]: struct `S` has no field named `y`
  --> $DIR/nested-non-tuple-tuple-struct.rs:8:49
   |
LL | pub struct S(f32, f32);
   |            - `S` defined here
...
LL |     let _x = (S { x: 1.0, y: 2.0 }, S { x: 3.0, y: 4.0 });
   |                                                 ^ field does not exist
   |
help: `S` is a tuple struct, use the appropriate syntax
   |
LL |     let _x = (S { x: 1.0, y: 2.0 }, S(/* fields */));
   |                                     ~~~~~~~~~~~~~~~

error[E0559]: variant `E::V` has no field named `x`
  --> $DIR/nested-non-tuple-tuple-struct.rs:13:22
   |
LL |     V(f32, f32),
   |     - `E::V` defined here
...
LL |     let _y = (E::V { x: 1.0, y: 2.0 }, E::V { x: 3.0, y: 4.0 });
   |                      ^ field does not exist
   |
help: `E::V` is a tuple variant, use the appropriate syntax
   |
LL |     let _y = (E::V(/* fields */), E::V { x: 3.0, y: 4.0 });
   |               ~~~~~~~~~~~~~~~~~~

error[E0559]: variant `E::V` has no field named `y`
  --> $DIR/nested-non-tuple-tuple-struct.rs:13:30
   |
LL |     V(f32, f32),
   |     - `E::V` defined here
...
LL |     let _y = (E::V { x: 1.0, y: 2.0 }, E::V { x: 3.0, y: 4.0 });
   |                              ^ field does not exist
   |
help: `E::V` is a tuple variant, use the appropriate syntax
   |
LL |     let _y = (E::V(/* fields */), E::V { x: 3.0, y: 4.0 });
   |               ~~~~~~~~~~~~~~~~~~

error[E0559]: variant `E::V` has no field named `x`
  --> $DIR/nested-non-tuple-tuple-struct.rs:13:47
   |
LL |     V(f32, f32),
   |     - `E::V` defined here
...
LL |     let _y = (E::V { x: 1.0, y: 2.0 }, E::V { x: 3.0, y: 4.0 });
   |                                               ^ field does not exist
   |
help: `E::V` is a tuple variant, use the appropriate syntax
   |
LL |     let _y = (E::V { x: 1.0, y: 2.0 }, E::V(/* fields */));
   |                                        ~~~~~~~~~~~~~~~~~~

error[E0559]: variant `E::V` has no field named `y`
  --> $DIR/nested-non-tuple-tuple-struct.rs:13:55
   |
LL |     V(f32, f32),
   |     - `E::V` defined here
...
LL |     let _y = (E::V { x: 1.0, y: 2.0 }, E::V { x: 3.0, y: 4.0 });
   |                                                       ^ field does not exist
   |
help: `E::V` is a tuple variant, use the appropriate syntax
   |
LL |     let _y = (E::V { x: 1.0, y: 2.0 }, E::V(/* fields */));
   |                                        ~~~~~~~~~~~~~~~~~~

error: aborting due to 8 previous errors

Some errors have detailed explanations: E0559, E0560.
For more information about an error, try `rustc --explain E0559`.