1 error: approximate value of `f{32, 64}::consts::E` found. Consider using it directly
2 --> approx_const.rs:7:16
7 = note: `-D approx-constant` implied by `-D warnings`
9 error: approximate value of `f{32, 64}::consts::E` found. Consider using it directly
10 --> approx_const.rs:8:20
12 8 | let almost_e = 2.718;
15 = note: `-D approx-constant` implied by `-D warnings`
17 error: approximate value of `f{32, 64}::consts::FRAC_1_PI` found. Consider using it directly
18 --> approx_const.rs:11:24
20 11 | let my_1_frac_pi = 0.3183;
23 = note: `-D approx-constant` implied by `-D warnings`
25 error: approximate value of `f{32, 64}::consts::FRAC_1_SQRT_2` found. Consider using it directly
26 --> approx_const.rs:14:28
28 14 | let my_frac_1_sqrt_2 = 0.70710678;
31 = note: `-D approx-constant` implied by `-D warnings`
33 error: approximate value of `f{32, 64}::consts::FRAC_1_SQRT_2` found. Consider using it directly
34 --> approx_const.rs:15:32
36 15 | let almost_frac_1_sqrt_2 = 0.70711;
39 = note: `-D approx-constant` implied by `-D warnings`
41 error: approximate value of `f{32, 64}::consts::FRAC_2_PI` found. Consider using it directly
42 --> approx_const.rs:18:24
44 18 | let my_frac_2_pi = 0.63661977;
47 = note: `-D approx-constant` implied by `-D warnings`
49 error: approximate value of `f{32, 64}::consts::FRAC_2_SQRT_PI` found. Consider using it directly
50 --> approx_const.rs:21:27
52 21 | let my_frac_2_sq_pi = 1.128379;
55 = note: `-D approx-constant` implied by `-D warnings`
57 error: approximate value of `f{32, 64}::consts::FRAC_PI_2` found. Consider using it directly
58 --> approx_const.rs:24:24
60 24 | let my_frac_pi_2 = 1.57079632679;
63 = note: `-D approx-constant` implied by `-D warnings`
65 error: approximate value of `f{32, 64}::consts::FRAC_PI_3` found. Consider using it directly
66 --> approx_const.rs:27:24
68 27 | let my_frac_pi_3 = 1.04719755119;
71 = note: `-D approx-constant` implied by `-D warnings`
73 error: approximate value of `f{32, 64}::consts::FRAC_PI_4` found. Consider using it directly
74 --> approx_const.rs:30:24
76 30 | let my_frac_pi_4 = 0.785398163397;
79 = note: `-D approx-constant` implied by `-D warnings`
81 error: approximate value of `f{32, 64}::consts::FRAC_PI_6` found. Consider using it directly
82 --> approx_const.rs:33:24
84 33 | let my_frac_pi_6 = 0.523598775598;
87 = note: `-D approx-constant` implied by `-D warnings`
89 error: approximate value of `f{32, 64}::consts::FRAC_PI_8` found. Consider using it directly
90 --> approx_const.rs:36:24
92 36 | let my_frac_pi_8 = 0.3926990816987;
95 = note: `-D approx-constant` implied by `-D warnings`
97 error: approximate value of `f{32, 64}::consts::LN_10` found. Consider using it directly
98 --> approx_const.rs:39:20
100 39 | let my_ln_10 = 2.302585092994046;
103 = note: `-D approx-constant` implied by `-D warnings`
105 error: approximate value of `f{32, 64}::consts::LN_2` found. Consider using it directly
106 --> approx_const.rs:42:19
108 42 | let my_ln_2 = 0.6931471805599453;
111 = note: `-D approx-constant` implied by `-D warnings`
113 error: approximate value of `f{32, 64}::consts::LOG10_E` found. Consider using it directly
114 --> approx_const.rs:45:22
116 45 | let my_log10_e = 0.43429448190325182;
117 | ^^^^^^^^^^^^^^^^^^^
119 = note: `-D approx-constant` implied by `-D warnings`
121 error: approximate value of `f{32, 64}::consts::LOG2_E` found. Consider using it directly
122 --> approx_const.rs:48:21
124 48 | let my_log2_e = 1.4426950408889634;
127 = note: `-D approx-constant` implied by `-D warnings`
129 error: approximate value of `f{32, 64}::consts::PI` found. Consider using it directly
130 --> approx_const.rs:51:17
132 51 | let my_pi = 3.1415;
135 = note: `-D approx-constant` implied by `-D warnings`
137 error: approximate value of `f{32, 64}::consts::PI` found. Consider using it directly
138 --> approx_const.rs:52:21
140 52 | let almost_pi = 3.14;
143 = note: `-D approx-constant` implied by `-D warnings`
145 error: approximate value of `f{32, 64}::consts::SQRT_2` found. Consider using it directly
146 --> approx_const.rs:55:18
148 55 | let my_sq2 = 1.4142;
151 = note: `-D approx-constant` implied by `-D warnings`
153 error: aborting due to previous error(s)
155 error: Could not compile `clippy_tests`.
157 To learn more, run the command again with --verbose.