@@ -12,7 +12,7 @@ note: `B` doesn't implement `Copy` or `Clone`
12
12
|
13
13
LL | struct B;
14
14
| ^^^^^^^^
15
- help: if `B` implemented `Clone`, you could clone the value from the field instead of using the spread operator syntax
15
+ help: if `B` implemented `Clone`, you could clone the value from the field instead of using the functional record update syntax
16
16
|
17
17
LL | let _s2 = S { a: 2, b: s0.b.clone(), ..s0 };
18
18
| +++++++++++++++++
@@ -31,7 +31,7 @@ note: `B` doesn't implement `Copy` or `Clone`
31
31
|
32
32
LL | struct B;
33
33
| ^^^^^^^^
34
- help: if `B` implemented `Clone`, you could clone the value from the field instead of using the spread operator syntax
34
+ help: if `B` implemented `Clone`, you could clone the value from the field instead of using the functional record update syntax
35
35
|
36
36
LL | let _s2 = S { a: 2, b: s0.b.clone(), c: s0.c.clone() };
37
37
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -50,7 +50,7 @@ note: `B` doesn't implement `Copy` or `Clone`
50
50
|
51
51
LL | struct B;
52
52
| ^^^^^^^^
53
- help: if `B` implemented `Clone`, you could clone the value from the field instead of using the spread operator syntax
53
+ help: if `B` implemented `Clone`, you could clone the value from the field instead of using the functional record update syntax
54
54
|
55
55
LL | let _s2 = S { a: 2, b: s0.b.clone(), c: s0.c.clone() };
56
56
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -69,7 +69,7 @@ note: `B` doesn't implement `Copy` or `Clone`
69
69
|
70
70
LL | struct B;
71
71
| ^^^^^^^^
72
- help: if `B` implemented `Clone`, you could clone the value from the field instead of using the spread operator syntax
72
+ help: if `B` implemented `Clone`, you could clone the value from the field instead of using the functional record update syntax
73
73
|
74
74
LL | let _s2 = S { a: 2, b: s0.b.clone(), ..s0 };
75
75
| +++++++++++++++++
@@ -83,7 +83,7 @@ LL | let _s2 = S { a: 2, ..s0 };
83
83
| cannot move out of here
84
84
| move occurs because `s0.c` has type `K`, which does not implement the `Copy` trait
85
85
|
86
- help: clone the value from the field instead of using the spread operator syntax
86
+ help: clone the value from the field instead of using the functional record update syntax
87
87
|
88
88
LL | let _s2 = S { a: 2, c: s0.c.clone(), ..s0 };
89
89
| +++++++++++++++++
@@ -97,7 +97,7 @@ LL | let _s2 = T { a: 2, ..s0 };
97
97
| cannot move out of here
98
98
| move occurs because `s0.b` has type `Box<isize>`, which does not implement the `Copy` trait
99
99
|
100
- help: clone the value from the field instead of using the spread operator syntax
100
+ help: clone the value from the field instead of using the functional record update syntax
101
101
|
102
102
LL | let _s2 = T { a: 2, b: s0.b.clone() };
103
103
| ~~~~~~~~~~~~~~~~~
@@ -111,7 +111,7 @@ LL | let _s2 = T { ..s0 };
111
111
| cannot move out of here
112
112
| move occurs because `s0.b` has type `Box<isize>`, which does not implement the `Copy` trait
113
113
|
114
- help: clone the value from the field instead of using the spread operator syntax
114
+ help: clone the value from the field instead of using the functional record update syntax
115
115
|
116
116
LL | let _s2 = T { b: s0.b.clone(), ..s0 };
117
117
| ~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -139,7 +139,7 @@ LL | let _s2 = V { a: 2, ..s0 };
139
139
| cannot move out of here
140
140
| move occurs because `s0.b` has type `Box<isize>`, which does not implement the `Copy` trait
141
141
|
142
- help: clone the value from the field instead of using the spread operator syntax
142
+ help: clone the value from the field instead of using the functional record update syntax
143
143
|
144
144
LL | let _s2 = V { a: 2, b: s0.b.clone(), ..s0 };
145
145
| +++++++++++++++++
@@ -153,7 +153,7 @@ LL | let _s2 = V { a: 2, ..s0 };
153
153
| cannot move out of here
154
154
| move occurs because `s0.c` has type `K`, which does not implement the `Copy` trait
155
155
|
156
- help: clone the value from the field instead of using the spread operator syntax
156
+ help: clone the value from the field instead of using the functional record update syntax
157
157
|
158
158
LL | let _s2 = V { a: 2, c: s0.c.clone(), ..s0 };
159
159
| +++++++++++++++++
@@ -167,7 +167,7 @@ LL | let _s2 = V { a: 2, ..s0 };
167
167
| cannot move out of here
168
168
| move occurs because `s0.b` has type `Box<isize>`, which does not implement the `Copy` trait
169
169
|
170
- help: clone the value from the field instead of using the spread operator syntax
170
+ help: clone the value from the field instead of using the functional record update syntax
171
171
|
172
172
LL | let _s2 = V { a: 2, b: s0.b.clone(), ..s0 };
173
173
| +++++++++++++++++
@@ -181,7 +181,7 @@ LL | let _s2 = V { a: 2, ..s0 };
181
181
| cannot move out of here
182
182
| move occurs because `s0.c` has type `Clonable`, which does not implement the `Copy` trait
183
183
|
184
- help: clone the value from the field instead of using the spread operator syntax
184
+ help: clone the value from the field instead of using the functional record update syntax
185
185
|
186
186
LL | let _s2 = V { a: 2, c: s0.c.clone(), ..s0 };
187
187
| +++++++++++++++++
0 commit comments