mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 06:44:35 +00:00
Use assoc const f32::NAN in liballoc
This commit is contained in:
parent
40158901d5
commit
65e10e3436
@ -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));
|
||||
}
|
||||
|
@ -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));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user