Change assert form.

This commit is contained in:
Dan Barella 2018-01-29 19:03:12 -05:00 committed by Josh Stone
parent ecb0816c83
commit ab8fda7654
1 changed files with 1 additions and 1 deletions

View File

@ -656,5 +656,5 @@ fn float_to_integer_checks_overflow() {
let source: f64 = 1.0e+123f64;
// Expect the overflow to be caught
assert_eq!(source.to_i32(), None);
assert_eq!(cast::<f64, i32>(source), None);
}