The method is count_onesnot provided by a feature shared between integral types - it is implemented separately for each of them. This means that you need to specify a type so that this method is applicable to the number on which you want to use it - the compiler must know which type implementation to use.
, , , let x = 5; i32 ( ) count_ones, - .