Shadowing is most useful when you are parsing keyboard input:
usestd::io;letmutnum=String::new()io::stdin().read_line(&mutnum).expect("Failed to read line");letnum:usize=num.trim().parse().expect("Failed to parse number");// Continue to use num as immutable usize. The mutable String is now not accessible any more.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Shadowing is most useful when you are parsing keyboard input: