@@ -198,26 +198,26 @@ fn main_0() -> i32 {
198198 let c: Value < Partial > = Rc :: new ( RefCell :: new ( Partial :: Partial ( { 3 } , { 300 } ) ) ) ;
199199 ( { PartialImpl :: operator_assign ( & a. as_pointer ( ) , b. as_pointer ( ) ) } ) ;
200200 assert ! ( ( ( * ( * a. borrow( ) ) . v. borrow( ) ) == 2 ) && ( ( * ( * a. borrow( ) ) . keep. borrow( ) ) == 100 ) ) ;
201- assert ! ( ( ( * assigns_0. with( Value :: clone ) . borrow( ) ) == 1 ) ) ;
201+ assert ! ( ( assigns_0. with( |rc| rc . borrow( ) . clone ( ) ) == 1 ) ) ;
202202 ( {
203203 PartialImpl :: operator_assign (
204204 & c. as_pointer ( ) ,
205205 ( { PartialImpl :: operator_assign ( & a. as_pointer ( ) , b. as_pointer ( ) ) } ) ,
206206 )
207207 } ) ;
208208 assert ! ( ( ( * ( * c. borrow( ) ) . v. borrow( ) ) == 2 ) && ( ( * ( * c. borrow( ) ) . keep. borrow( ) ) == 300 ) ) ;
209- assert ! ( ( ( * assigns_0. with( Value :: clone ) . borrow( ) ) == 3 ) ) ;
209+ assert ! ( ( assigns_0. with( |rc| rc . borrow( ) . clone ( ) ) == 3 ) ) ;
210210 ( {
211211 let _o: Ptr < Partial > = a. as_pointer ( ) ;
212212 PartialImpl :: operator_assign ( & a. as_pointer ( ) , _o)
213213 } ) ;
214- assert ! ( ( ( * assigns_0. with( Value :: clone ) . borrow( ) ) == 3 ) ) ;
214+ assert ! ( ( assigns_0. with( |rc| rc . borrow( ) . clone ( ) ) == 3 ) ) ;
215215 ( {
216216 let _o: Value < Partial > = Rc :: new ( RefCell :: new ( Partial :: Partial ( { 9 } , { 900 } ) ) ) ;
217217 PartialImpl :: operator_assign ( & a. as_pointer ( ) , _o. as_pointer ( ) )
218218 } ) ;
219219 assert ! ( ( ( * ( * a. borrow( ) ) . v. borrow( ) ) == 9 ) && ( ( * ( * a. borrow( ) ) . keep. borrow( ) ) == 100 ) ) ;
220- assert ! ( ( ( * assigns_0. with( Value :: clone ) . borrow( ) ) == 4 ) ) ;
220+ assert ! ( ( assigns_0. with( |rc| rc . borrow( ) . clone ( ) ) == 4 ) ) ;
221221 let ra: Ptr < Partial > = a. as_pointer ( ) ;
222222 ( {
223223 let _o: Ptr < Partial > = c. as_pointer ( ) ;
@@ -230,7 +230,7 @@ fn main_0() -> i32 {
230230 PartialImpl :: operator_assign ( & ( * pa. borrow ( ) ) , _o)
231231 } ) ;
232232 assert ! ( ( ( * ( * a. borrow( ) ) . v. borrow( ) ) == 2 ) ) ;
233- assert ! ( ( ( * assigns_0. with( Value :: clone ) . borrow( ) ) == 6 ) ) ;
233+ assert ! ( ( assigns_0. with( |rc| rc . borrow( ) . clone ( ) ) == 6 ) ) ;
234234 let h: Value < Holder > = Rc :: new ( RefCell :: new ( Holder {
235235 p : Rc :: new ( RefCell :: new ( Partial :: Partial ( { 4 } , { 40 } ) ) ) ,
236236 arr : Rc :: new ( RefCell :: new ( Box :: new ( [
@@ -253,7 +253,7 @@ fn main_0() -> i32 {
253253 ( ( * ( * ( * h. borrow( ) ) . arr. borrow( ) ) [ ( 1 ) as usize ] . v. borrow( ) ) == 2 )
254254 && ( ( * ( * ( * h. borrow( ) ) . arr. borrow( ) ) [ ( 1 ) as usize ] . keep. borrow( ) ) == 60 )
255255 ) ;
256- assert ! ( ( ( * assigns_0. with( Value :: clone ) . borrow( ) ) == 8 ) ) ;
256+ assert ! ( ( assigns_0. with( |rc| rc . borrow( ) . clone ( ) ) == 8 ) ) ;
257257 let n: Value < NonConstAssign > = Rc :: new ( RefCell :: new ( NonConstAssign :: NonConstAssign ( ) ) ) ;
258258 let n1: Value < NonConstAssign > = Rc :: new ( RefCell :: new ( NonConstAssign :: NonConstAssign ( ) ) ) ;
259259 let n2: Value < NonConstAssign > = Rc :: new ( RefCell :: new ( NonConstAssign :: NonConstAssign ( ) ) ) ;
0 commit comments