Don't use assert_ne!
`num` is tested against `rust 1.8.0`, which doesn't include `assert_ne!` -- so we use a plain ol' `assert` instead.
This commit is contained in:
parent
f99aa0e181
commit
3534a89858
|
@ -661,5 +661,5 @@ fn float_to_integer_checks_overflow() {
|
||||||
// Specifically make sure we didn't silently let the overflow through
|
// Specifically make sure we didn't silently let the overflow through
|
||||||
// (This line is mostly for humans -- the robots should catch any problem
|
// (This line is mostly for humans -- the robots should catch any problem
|
||||||
// on the line above).
|
// on the line above).
|
||||||
assert_ne!(source.to_i32(), Some(-2147483648));
|
assert!(source.to_i32() != Some(-2147483648));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue