File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -1018,14 +1018,14 @@ macro_rules! impl_integer_for_usize {
10181018
10191019 #[ test]
10201020 fn test_is_multiple_of( ) {
1021- assert!( ( 0 as $T) . is_multiple_of ( & ( 0 as $T) ) ) ;
1022- assert!( ( 6 as $T) . is_multiple_of ( & ( 6 as $T) ) ) ;
1023- assert!( ( 6 as $T) . is_multiple_of ( & ( 3 as $T) ) ) ;
1024- assert!( ( 6 as $T) . is_multiple_of ( & ( 1 as $T) ) ) ;
1025-
1026- assert!( !( 42 as $T) . is_multiple_of ( & ( 5 as $T) ) ) ;
1027- assert!( !( 5 as $T) . is_multiple_of ( & ( 3 as $T) ) ) ;
1028- assert!( !( 42 as $T) . is_multiple_of ( & ( 0 as $T) ) ) ;
1021+ assert!( <$T as Integer > :: is_multiple_of ( & ( 0 as $T) , & ( 0 as $T) ) ) ;
1022+ assert!( <$T as Integer > :: is_multiple_of ( & ( 6 as $T) , & ( 6 as $T) ) ) ;
1023+ assert!( <$T as Integer > :: is_multiple_of ( & ( 6 as $T) , & ( 3 as $T) ) ) ;
1024+ assert!( <$T as Integer > :: is_multiple_of ( & ( 6 as $T) , & ( 1 as $T) ) ) ;
1025+
1026+ assert!( !<$T as Integer > :: is_multiple_of ( & ( 42 as $T) , & ( 5 as $T) ) ) ;
1027+ assert!( !<$T as Integer > :: is_multiple_of ( & ( 5 as $T) , & ( 3 as $T) ) ) ;
1028+ assert!( !<$T as Integer > :: is_multiple_of ( & ( 42 as $T) , & ( 0 as $T) ) ) ;
10291029 }
10301030
10311031 #[ test]
You can’t perform that action at this time.
0 commit comments