With this code:
#![feature(const_fn_floating_point_arithmetic)]constfnf(one:f64) -> f64{(-1.0) % one
}constRESULT_CT:f64 = f(1.0);fnmain(){let black_box_one = (std::env::args().len())asf64;let result_rt = f(black_box_one);assert_eq!(RESULT_CT.is_sign_negative(), result_rt.is_sign_negative());}The assertion fails: compile-time evaluation gives 0.0 while runtime evaluation gives -0.0.
This is probably relevant to tracking issue #57241.
With this code:
The assertion fails: compile-time evaluation gives 0.0 while runtime evaluation gives -0.0.
This is probably relevant to tracking issue #57241.