如何将输入参数
n
i8
fn fact(n: i128) -> i128 { if n != 1 { n * fact(n - 1) } else { 1 } }
将
i128
fn fact(n: i8) -> i128 { if n != 1 { n as i128 * fact(n - 1) } else { 1 } }