Add a test for #3139

This commit is contained in:
Seiichi Uchida 2018-10-27 11:22:18 +09:00
parent 8fb1b179bf
commit 131f11a6e5
2 changed files with 16 additions and 0 deletions

View File

@ -121,3 +121,11 @@ fn issue3117() {
} }
} }
} }
// #3139
fn issue3139() {
assert_eq!(
to_json_value(&None :: <i32>).unwrap(),
json!( { "test": None :: <i32> } )
);
}

View File

@ -120,3 +120,11 @@ fn issue3117() {
} }
} }
} }
// #3139
fn issue3139() {
assert_eq!(
to_json_value(&None::<i32>).unwrap(),
json!({ "test": None::<i32> })
);
}