Skip to content

Commit 279ca51

Browse files
committed
Update expectation for float_cmp_const tests
1 parent 987ab7d commit 279ca51

1 file changed

Lines changed: 25 additions & 1 deletion

File tree

tests/ui/float_cmp_const.stderr

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,5 +67,29 @@ error: strict comparison of `f32` or `f64` constant arrays
6767
LL | 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

0 commit comments

Comments
 (0)