We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7ca2456 commit cabfb0bCopy full SHA for cabfb0b
src/float.rs
@@ -2304,14 +2304,17 @@ mod tests {
2304
}
2305
2306
#[test]
2307
+ #[cfg(any(feature = "std", feature = "libm"))]
2308
fn copysign() {
2309
use float::Float;
2310
test_copysign_generic(2.0_f32, -2.0_f32, f32::nan());
2311
test_copysign_generic(2.0_f64, -2.0_f64, f64::nan());
2312
test_copysignf(2.0_f32, -2.0_f32, f32::nan());
2313
2314
2315
2316
fn test_copysignf(p: f32, n: f32, nan: f32) {
2317
+ use float::Float;
2318
use core::ops::Neg;
2319
2320
assert!(p.is_sign_positive());
0 commit comments