File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -67,5 +67,29 @@ error: strict comparison of `f32` or `f64` constant arrays
6767LL | NON_ZERO_ARRAY == NON_ZERO_ARRAY2;
6868 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6969
70- error: aborting due to 11 previous errors
70+ error: strict comparison of `f32` or `f64` constant
71+ --> tests/ui/float_cmp_const.rs:90:5
72+ |
73+ LL | assert_eq!(a, 2.0);
74+ | ^^^^^^^^^^^^^^^^^^
75+
76+ error: strict comparison of `f32` or `f64` constant
77+ --> tests/ui/float_cmp_const.rs:92:5
78+ |
79+ LL | assert_ne!(b, 3.0);
80+ | ^^^^^^^^^^^^^^^^^^
81+
82+ error: strict comparison of `f32` or `f64` constant
83+ --> tests/ui/float_cmp_const.rs:94:5
84+ |
85+ LL | assert_eq!(4.0, a);
86+ | ^^^^^^^^^^^^^^^^^^
87+
88+ error: strict comparison of `f32` or `f64` constant
89+ --> tests/ui/float_cmp_const.rs:96:5
90+ |
91+ LL | assert_ne!(5.0, b);
92+ | ^^^^^^^^^^^^^^^^^^
93+
94+ error: aborting due to 15 previous errors
7195
You can’t perform that action at this time.
0 commit comments