#![allow(dead_code, deprecated, unused_variables, unused_mut)] #![feature(core_float_math)] use core::f64; fn main() { let a: f64 = 7.0; let b = 4.0; assert_eq!(f64::math::div_euclid(a, b), 1.0); assert_eq!(f64::math::div_euclid(- a, b), - 2.0); assert_eq!(f64::math::div_euclid(a, - b), - 1.0); assert_eq!(f64::math::div_euclid(- a, - b), 2.0); }