File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -103,7 +103,7 @@ fn test_weak_count() {
103103 let w = Rc :: downgrade ( & a) ;
104104 assert ! ( Rc :: strong_count( & a) == 1 ) ;
105105 assert ! ( Rc :: weak_count( & a) == 1 ) ;
106- let r = Rc :: as_weak ( & a) ;
106+ let r: & Weak < i32 > = Rc :: as_weak ( & a) ;
107107 assert ! ( Rc :: strong_count( & a) == 1 ) ;
108108 assert ! ( Rc :: weak_count( & a) == 1 ) ;
109109 assert ! ( r. as_ptr( ) == Rc :: as_ptr( & a) ) ;
Original file line number Diff line number Diff line change @@ -314,7 +314,7 @@ fn test_weak_count() {
314314 let w = Arc :: downgrade ( & a) ;
315315 assert ! ( Arc :: strong_count( & a) == 1 ) ;
316316 assert ! ( Arc :: weak_count( & a) == 1 ) ;
317- let r = Arc :: as_weak ( & a) ;
317+ let r: & Weak < i32 > = Arc :: as_weak ( & a) ;
318318 assert ! ( Arc :: strong_count( & a) == 1 ) ;
319319 assert ! ( Arc :: weak_count( & a) == 1 ) ;
320320 assert ! ( r. as_ptr( ) == Arc :: as_ptr( & a) ) ;
You can’t perform that action at this time.
0 commit comments