Error in compiling Trust: error [e0061]: this function takes 1 argument but 2 arguments were supplied
I didn’t find the relevant information. The preliminary judgment may be the problem of the version, because the code can be compiled in a low version.
Solutions are for reference only:
Error code:
let secret_number = rand::thread_rng().gen_range(1, 101);
Correct code:
let secret_number = rand::thread_rng().gen_range(1..101);
Compile after modification.