summaryrefslogtreecommitdiffstats
path: root/vendor/serde_json/tests/regression/issue953.rs
blob: 771aa5287c079ffd992ff9b11b3ea6e29d3c2a8b (plain)
1
2
3
4
5
6
7
8
9
use serde_json::Value;

#[test]
fn test() {
    let x1 = serde_json::from_str::<Value>("18446744073709551615.");
    assert!(x1.is_err());
    let x2 = serde_json::from_str::<Value>("18446744073709551616.");
    assert!(x2.is_err());
}