rust/tests/ui/cmp_nan.stderr

77 lines
2.0 KiB
Plaintext
Raw Normal View History

error: doomed comparison with NAN, use `std::{f32,f64}::is_nan()` instead
2018-10-07 00:18:06 +08:00
--> $DIR/cmp_nan.rs:18:5
|
18 | x == std::f32::NAN;
| ^^^^^^^^^^^^^^^^^^
|
= note: `-D clippy::cmp-nan` implied by `-D warnings`
error: doomed comparison with NAN, use `std::{f32,f64}::is_nan()` instead
2018-10-07 00:18:06 +08:00
--> $DIR/cmp_nan.rs:19:5
|
19 | x != std::f32::NAN;
| ^^^^^^^^^^^^^^^^^^
error: doomed comparison with NAN, use `std::{f32,f64}::is_nan()` instead
2018-10-07 00:18:06 +08:00
--> $DIR/cmp_nan.rs:20:5
|
2018-10-07 00:18:06 +08:00
20 | x < std::f32::NAN;
| ^^^^^^^^^^^^^^^^^
error: doomed comparison with NAN, use `std::{f32,f64}::is_nan()` instead
2018-10-07 00:18:06 +08:00
--> $DIR/cmp_nan.rs:21:5
|
2018-10-07 00:18:06 +08:00
21 | x > std::f32::NAN;
| ^^^^^^^^^^^^^^^^^
error: doomed comparison with NAN, use `std::{f32,f64}::is_nan()` instead
2018-10-07 00:18:06 +08:00
--> $DIR/cmp_nan.rs:22:5
|
2018-10-07 00:18:06 +08:00
22 | x <= std::f32::NAN;
| ^^^^^^^^^^^^^^^^^^
error: doomed comparison with NAN, use `std::{f32,f64}::is_nan()` instead
2018-10-07 00:18:06 +08:00
--> $DIR/cmp_nan.rs:23:5
|
2018-10-07 00:18:06 +08:00
23 | x >= std::f32::NAN;
| ^^^^^^^^^^^^^^^^^^
error: doomed comparison with NAN, use `std::{f32,f64}::is_nan()` instead
2018-10-07 00:18:06 +08:00
--> $DIR/cmp_nan.rs:26:5
|
2018-10-07 00:18:06 +08:00
26 | y == std::f64::NAN;
| ^^^^^^^^^^^^^^^^^^
error: doomed comparison with NAN, use `std::{f32,f64}::is_nan()` instead
2018-10-07 00:18:06 +08:00
--> $DIR/cmp_nan.rs:27:5
|
2018-10-07 00:18:06 +08:00
27 | y != std::f64::NAN;
| ^^^^^^^^^^^^^^^^^^
error: doomed comparison with NAN, use `std::{f32,f64}::is_nan()` instead
2018-10-07 00:18:06 +08:00
--> $DIR/cmp_nan.rs:28:5
|
2018-10-07 00:18:06 +08:00
28 | y < std::f64::NAN;
| ^^^^^^^^^^^^^^^^^
error: doomed comparison with NAN, use `std::{f32,f64}::is_nan()` instead
2018-10-07 00:18:06 +08:00
--> $DIR/cmp_nan.rs:29:5
|
2018-10-07 00:18:06 +08:00
29 | y > std::f64::NAN;
| ^^^^^^^^^^^^^^^^^
error: doomed comparison with NAN, use `std::{f32,f64}::is_nan()` instead
2018-10-07 00:18:06 +08:00
--> $DIR/cmp_nan.rs:30:5
|
2018-10-07 00:18:06 +08:00
30 | y <= std::f64::NAN;
| ^^^^^^^^^^^^^^^^^^
error: doomed comparison with NAN, use `std::{f32,f64}::is_nan()` instead
2018-10-07 00:18:06 +08:00
--> $DIR/cmp_nan.rs:31:5
|
2018-10-07 00:18:06 +08:00
31 | y >= std::f64::NAN;
| ^^^^^^^^^^^^^^^^^^
2018-01-17 00:06:27 +08:00
error: aborting due to 12 previous errors