Closed
Description
The parse::<i32>()
function (and all its cousins for other integer types) fail for strings starting with a +
with ParseIntError { kind: InvalidDigit }
. Failing snippet:
fn main () {
assert_eq!("+42".parse::<i32>().unwrap(), 42);
}
The same error occurs with the symmetric function call i32::from_str("+42")
.