Open ThePrzeglo opened 5 years ago
On my machine it works as expected: parse_str
returns Err(Message("error parsing number"))
.
Maybe it's something related to rust version and/or toolchain? (mine is rustc 1.42.0 (b8cedc004 2020-03-09)
and toolchain stable-x86_64-pc-windows-msvc
)
@ThePrzeglo, what's your rust version and toolchain?
I am pretty sure that I've tested it with some nightly like 1.40. I do not really want to browse my backups now to check this.
On stable rustc 1.40.0 (73528e339 2019-12-16)
with x86_64-unknown-linux-gnu
works just fine.
Looks like it was false positive related to compiler. I think that this issue may be closed.
Following code causes crash:
Version in cargo.toml: json5 = "0.2.5"
Result: