]> git.lizzy.rs Git - rust.git/blob - tests/ui/cmp_nan.stderr
update test stderr
[rust.git] / tests / ui / cmp_nan.stderr
1 error: doomed comparison with NAN, use `std::{f32,f64}::is_nan()` instead
2   --> $DIR/cmp_nan.rs:14:5
3    |
4 14 |     x == std::f32::NAN;
5    |     ^^^^^^^^^^^^^^^^^^
6    |
7    = note: `-D clippy::cmp-nan` implied by `-D warnings`
8
9 error: doomed comparison with NAN, use `std::{f32,f64}::is_nan()` instead
10   --> $DIR/cmp_nan.rs:15:5
11    |
12 15 |     x != std::f32::NAN;
13    |     ^^^^^^^^^^^^^^^^^^
14
15 error: doomed comparison with NAN, use `std::{f32,f64}::is_nan()` instead
16   --> $DIR/cmp_nan.rs:16:5
17    |
18 16 |     x < std::f32::NAN;
19    |     ^^^^^^^^^^^^^^^^^
20
21 error: doomed comparison with NAN, use `std::{f32,f64}::is_nan()` instead
22   --> $DIR/cmp_nan.rs:17:5
23    |
24 17 |     x > std::f32::NAN;
25    |     ^^^^^^^^^^^^^^^^^
26
27 error: doomed comparison with NAN, use `std::{f32,f64}::is_nan()` instead
28   --> $DIR/cmp_nan.rs:18:5
29    |
30 18 |     x <= std::f32::NAN;
31    |     ^^^^^^^^^^^^^^^^^^
32
33 error: doomed comparison with NAN, use `std::{f32,f64}::is_nan()` instead
34   --> $DIR/cmp_nan.rs:19:5
35    |
36 19 |     x >= std::f32::NAN;
37    |     ^^^^^^^^^^^^^^^^^^
38
39 error: doomed comparison with NAN, use `std::{f32,f64}::is_nan()` instead
40   --> $DIR/cmp_nan.rs:22:5
41    |
42 22 |     y == std::f64::NAN;
43    |     ^^^^^^^^^^^^^^^^^^
44
45 error: doomed comparison with NAN, use `std::{f32,f64}::is_nan()` instead
46   --> $DIR/cmp_nan.rs:23:5
47    |
48 23 |     y != std::f64::NAN;
49    |     ^^^^^^^^^^^^^^^^^^
50
51 error: doomed comparison with NAN, use `std::{f32,f64}::is_nan()` instead
52   --> $DIR/cmp_nan.rs:24:5
53    |
54 24 |     y < std::f64::NAN;
55    |     ^^^^^^^^^^^^^^^^^
56
57 error: doomed comparison with NAN, use `std::{f32,f64}::is_nan()` instead
58   --> $DIR/cmp_nan.rs:25:5
59    |
60 25 |     y > std::f64::NAN;
61    |     ^^^^^^^^^^^^^^^^^
62
63 error: doomed comparison with NAN, use `std::{f32,f64}::is_nan()` instead
64   --> $DIR/cmp_nan.rs:26:5
65    |
66 26 |     y <= std::f64::NAN;
67    |     ^^^^^^^^^^^^^^^^^^
68
69 error: doomed comparison with NAN, use `std::{f32,f64}::is_nan()` instead
70   --> $DIR/cmp_nan.rs:27:5
71    |
72 27 |     y >= std::f64::NAN;
73    |     ^^^^^^^^^^^^^^^^^^
74
75 error: aborting due to 12 previous errors
76