-
Notifications
You must be signed in to change notification settings - Fork 14k
Closed
Labels
I-needs-decisionIssue: In need of a decision.Issue: In need of a decision.P-lowLow priorityLow priorityT-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.
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").
Metadata
Metadata
Assignees
Labels
I-needs-decisionIssue: In need of a decision.Issue: In need of a decision.P-lowLow priorityLow priorityT-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.