@@ -184,37 +184,69 @@ LL | let almost_tau = 6.28;
184184 |
185185 = help: consider using the constant directly
186186
187+ error: approximate value of `f{32, 64}::consts::EULER_GAMMA` found
188+ --> tests/ui/approx_const.rs:110:26
189+ |
190+ LL | let my_euler_gamma = 0.577215664901533;
191+ | ^^^^^^^^^^^^^^^^^
192+ |
193+ = help: consider using the constant directly
194+
195+ error: approximate value of `f{32, 64}::consts::EULER_GAMMA` found
196+ --> tests/ui/approx_const.rs:113:30
197+ |
198+ LL | let almost_euler_gamma = 0.5772;
199+ | ^^^^^^
200+ |
201+ = help: consider using the constant directly
202+
203+ error: approximate value of `f{32, 64}::consts::GOLDEN_RATIO` found
204+ --> tests/ui/approx_const.rs:118:28
205+ |
206+ LL | let my_golden_ration = 1.618033988749895;
207+ | ^^^^^^^^^^^^^^^^^
208+ |
209+ = help: consider using the constant directly
210+
211+ error: approximate value of `f{32, 64}::consts::GOLDEN_RATIO` found
212+ --> tests/ui/approx_const.rs:121:32
213+ |
214+ LL | let almost_golden_ration = 1.6180;
215+ | ^^^^^^
216+ |
217+ = help: consider using the constant directly
218+
187219error: approximate value of `f{32, 64}::consts::PI` found
188- --> tests/ui/approx_const.rs:112 :18
220+ --> tests/ui/approx_const.rs:128 :18
189221 |
190222LL | let x: f64 = 3.1415926535897932384626433832;
191223 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
192224 |
193225 = help: consider using the constant directly
194226
195227error: approximate value of `f{32, 64}::consts::PI` found
196- --> tests/ui/approx_const.rs:116 :18
228+ --> tests/ui/approx_const.rs:132 :18
197229 |
198230LL | let _: f64 = 003.14159265358979311599796346854418516159057617187500;
199231 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
200232 |
201233 = help: consider using the constant directly
202234
203235error: approximate value of `f{32, 64}::consts::FRAC_1_SQRT_2` found
204- --> tests/ui/approx_const.rs:119 :32
236+ --> tests/ui/approx_const.rs:135 :32
205237 |
206238LL | let almost_frac_1_sqrt_2 = 00.70711;
207239 | ^^^^^^^^
208240 |
209241 = help: consider using the constant directly
210242
211243error: approximate value of `f{32, 64}::consts::FRAC_1_SQRT_2` found
212- --> tests/ui/approx_const.rs:122 :32
244+ --> tests/ui/approx_const.rs:138 :32
213245 |
214246LL | let almost_frac_1_sqrt_2 = 00.707_11;
215247 | ^^^^^^^^^
216248 |
217249 = help: consider using the constant directly
218250
219- error: aborting due to 27 previous errors
251+ error: aborting due to 31 previous errors
220252
0 commit comments