mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 23:04:33 +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]
|
#[test]
|
||||||
fn float_nan_ne() {
|
fn float_nan_ne() {
|
||||||
let x = Arc::new(std::f32::NAN);
|
let x = Arc::new(f32::NAN);
|
||||||
assert!(x != x);
|
assert!(x != x);
|
||||||
assert!(!(x == x));
|
assert!(!(x == x));
|
||||||
}
|
}
|
||||||
|
@ -50,7 +50,7 @@ fn trait_object() {
|
|||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn float_nan_ne() {
|
fn float_nan_ne() {
|
||||||
let x = Rc::new(std::f32::NAN);
|
let x = Rc::new(f32::NAN);
|
||||||
assert!(x != x);
|
assert!(x != x);
|
||||||
assert!(!(x == x));
|
assert!(!(x == x));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user