@@ -35,5 +35,31 @@ note: `f32::EPSILON` and `f64::EPSILON` are available.
35
35
LL | twice(x) != twice(ONE as f64);
36
36
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
37
37
38
- error: aborting due to 3 previous errors
38
+ error: strict comparison of f32 or f64
39
+ --> $DIR/float_cmp.rs:83:5
40
+ |
41
+ LL | assert_eq!(a1[0], a2[0]);
42
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^
43
+ |
44
+ note: std::f32::EPSILON and std::f64::EPSILON are available.
45
+ --> $DIR/float_cmp.rs:83:5
46
+ |
47
+ LL | assert_eq!(a1[0], a2[0]);
48
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^
49
+ = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
50
+
51
+ error: strict comparison of f32 or f64
52
+ --> $DIR/float_cmp.rs:85:5
53
+ |
54
+ LL | assert_eq!(&a1[0], &a2[0]);
55
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
56
+ |
57
+ note: std::f32::EPSILON and std::f64::EPSILON are available.
58
+ --> $DIR/float_cmp.rs:85:5
59
+ |
60
+ LL | assert_eq!(&a1[0], &a2[0]);
61
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
62
+ = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
63
+
64
+ error: aborting due to 5 previous errors
39
65
0 commit comments