File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -48,10 +48,10 @@ pub fn main() {
4848 std:: process:: exit ( main_0 ( ) ) ;
4949}
5050fn main_0 ( ) -> i32 {
51- let u: Value < basic > = < Value < basic > > :: default ( ) ;
51+ let u: Value < basic > = Rc :: new ( RefCell :: new ( < basic >:: default ( ) ) ) ;
5252 ( * u. borrow_mut ( ) ) . i ( ) . write ( 42 ) ;
53- assert ! ( ( ( ( ( ( * u. borrow( ) ) . i( ) . read( ) ) == 42 ) as i32 ) != 0 ) ) ;
53+ assert ! ( ( ( ( * u. borrow( ) ) . i( ) . read( ) ) == 42 ) ) ;
5454 ( * u. borrow_mut ( ) ) . f ( ) . write ( 3.140000105E+0 ) ;
55- assert ! ( ( ( ( ( ( * u. borrow( ) ) . f( ) . read( ) ) == 3.140000105E+0 ) as i32 ) != 0 ) ) ;
55+ assert ! ( ( ( ( * u. borrow( ) ) . f( ) . read( ) ) == 3.140000105E+0 ) ) ;
5656 return 0 ;
5757}
Original file line number Diff line number Diff line change @@ -25,8 +25,8 @@ pub fn main() {
2525unsafe fn main_0 ( ) -> i32 {
2626 let mut u: basic = <basic >:: default ( ) ;
2727 u. i = 42 ;
28- assert ! ( ( ( ( ( u. i) == ( 42 ) ) as i32 ) != 0 ) ) ;
28+ assert ! ( ( ( u. i) == ( 42 ) ) ) ;
2929 u. f = 3.140000105E+0 ;
30- assert ! ( ( ( ( ( u. f) == ( 3.140000105E+0 ) ) as i32 ) != 0 ) ) ;
30+ assert ! ( ( ( u. f) == ( 3.140000105E+0 ) ) ) ;
3131 return 0 ;
3232}
You can’t perform that action at this time.
0 commit comments