Hi the following code does not work on the stable branch :
let a : usize = 4_usize; let b : usize = (2_usize).pow(a);
I do not see why pow expects an
u32 here and not an
usize ? I expect to be calling
usize::pow there, isn’t it ?
And indeed, it seems like the definition of pow for usize takes a u32 as an argument, what is the reason for this ?
Thanks for your help!