Assertion in the following code is accepted, which breaks the behaviour I was relying on. ``` rust fn main() { assert_eq!("-".parse(), Ok(0)); } ``` This bug has been present already on 2014-11-21. It's one-line fix, I'll try making a PR.
Activity
Aatch commentedon Feb 24, 2015
Heh, that's kind of amusing.
[-]Parsing `"-"` as integer incorrectly gives `Ok(0)`[/-][+]Parsing "-" as integer incorrectly gives Ok(0)[/+]Stop parsing "-" as integer, fixes rust-lang#22745
Rollup merge of rust-lang#22747 - krdln:fix-parsing-minus, r=alexcric…