File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ pub fn main() {
2222}
2323fn main_0 ( ) -> i32 {
2424 return ( {
25- let _fn: FnPtr < fn ( ) -> bool > = fn_ptr ! ( test1_0 , fn ( ) -> bool ) ;
25+ let _fn: FnPtr < fn ( ) -> bool > = FnPtr :: < fn ( ) -> bool > :: new ( test1_0 ) ;
2626 test_1 ( _fn)
2727 } ) ;
2828}
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ use std::rc::Rc;
1010pub unsafe fn test1_0 ( ) -> bool {
1111 return false ;
1212}
13- pub unsafe fn test_1 ( mut fn_ : Option < fn ( ) -> bool > ) -> i32 {
13+ pub unsafe fn test_1 ( mut fn_ : Option < unsafe fn ( ) -> bool > ) -> i32 {
1414 if !( unsafe { ( fn_) . unwrap ( ) ( ) } ) {
1515 return 1 ;
1616 }
@@ -23,7 +23,7 @@ pub fn main() {
2323}
2424unsafe fn main_0 ( ) -> i32 {
2525 return ( unsafe {
26- let _fn: Option < fn ( ) -> bool > = Some ( test1_0) ;
26+ let _fn: Option < unsafe fn ( ) -> bool > = Some ( test1_0) ;
2727 test_1 ( _fn)
2828 } ) ;
2929}
You can’t perform that action at this time.
0 commit comments