Use assoc const f32::NAN in liballoc

This commit is contained in:
Linus Färnstrand 2020-04-06 22:44:04 +02:00
parent 40158901d5
commit 65e10e3436
2 changed files with 2 additions and 2 deletions

View File

@ -50,7 +50,7 @@ fn trait_object() {
#[test]
fn float_nan_ne() {
let x = Arc::new(std::f32::NAN);
let x = Arc::new(f32::NAN);
assert!(x != x);
assert!(!(x == x));
}

View File

@ -50,7 +50,7 @@ fn trait_object() {
#[test]
fn float_nan_ne() {
let x = Rc::new(std::f32::NAN);
let x = Rc::new(f32::NAN);
assert!(x != x);
assert!(!(x == x));
}