1 error: approximate value of `f{32, 64}::consts::E` found
2 --> $DIR/approx_const.rs:4:16
4 LL | let my_e = 2.7182;
7 = note: `-D clippy::approx-constant` implied by `-D warnings`
8 = help: consider using the constant directly
10 error: approximate value of `f{32, 64}::consts::E` found
11 --> $DIR/approx_const.rs:5:20
13 LL | let almost_e = 2.718;
16 = help: consider using the constant directly
18 error: approximate value of `f{32, 64}::consts::FRAC_1_PI` found
19 --> $DIR/approx_const.rs:8:24
21 LL | let my_1_frac_pi = 0.3183;
24 = help: consider using the constant directly
26 error: approximate value of `f{32, 64}::consts::FRAC_1_SQRT_2` found
27 --> $DIR/approx_const.rs:11:28
29 LL | let my_frac_1_sqrt_2 = 0.70710678;
32 = help: consider using the constant directly
34 error: approximate value of `f{32, 64}::consts::FRAC_1_SQRT_2` found
35 --> $DIR/approx_const.rs:12:32
37 LL | let almost_frac_1_sqrt_2 = 0.70711;
40 = help: consider using the constant directly
42 error: approximate value of `f{32, 64}::consts::FRAC_2_PI` found
43 --> $DIR/approx_const.rs:15:24
45 LL | let my_frac_2_pi = 0.63661977;
48 = help: consider using the constant directly
50 error: approximate value of `f{32, 64}::consts::FRAC_2_SQRT_PI` found
51 --> $DIR/approx_const.rs:18:27
53 LL | let my_frac_2_sq_pi = 1.128379;
56 = help: consider using the constant directly
58 error: approximate value of `f{32, 64}::consts::FRAC_PI_2` found
59 --> $DIR/approx_const.rs:21:24
61 LL | let my_frac_pi_2 = 1.57079632679;
64 = help: consider using the constant directly
66 error: approximate value of `f{32, 64}::consts::FRAC_PI_3` found
67 --> $DIR/approx_const.rs:24:24
69 LL | let my_frac_pi_3 = 1.04719755119;
72 = help: consider using the constant directly
74 error: approximate value of `f{32, 64}::consts::FRAC_PI_4` found
75 --> $DIR/approx_const.rs:27:24
77 LL | let my_frac_pi_4 = 0.785398163397;
80 = help: consider using the constant directly
82 error: approximate value of `f{32, 64}::consts::FRAC_PI_6` found
83 --> $DIR/approx_const.rs:30:24
85 LL | let my_frac_pi_6 = 0.523598775598;
88 = help: consider using the constant directly
90 error: approximate value of `f{32, 64}::consts::FRAC_PI_8` found
91 --> $DIR/approx_const.rs:33:24
93 LL | let my_frac_pi_8 = 0.3926990816987;
96 = help: consider using the constant directly
98 error: approximate value of `f{32, 64}::consts::LN_10` found
99 --> $DIR/approx_const.rs:36:20
101 LL | let my_ln_10 = 2.302585092994046;
104 = help: consider using the constant directly
106 error: approximate value of `f{32, 64}::consts::LN_2` found
107 --> $DIR/approx_const.rs:39:19
109 LL | let my_ln_2 = 0.6931471805599453;
112 = help: consider using the constant directly
114 error: approximate value of `f{32, 64}::consts::LOG10_E` found
115 --> $DIR/approx_const.rs:42:22
117 LL | let my_log10_e = 0.4342944819032518;
120 = help: consider using the constant directly
122 error: approximate value of `f{32, 64}::consts::LOG2_E` found
123 --> $DIR/approx_const.rs:45:21
125 LL | let my_log2_e = 1.4426950408889634;
128 = help: consider using the constant directly
130 error: approximate value of `f{32, 64}::consts::LOG2_10` found
131 --> $DIR/approx_const.rs:48:19
133 LL | let log2_10 = 3.321928094887362;
136 = help: consider using the constant directly
138 error: approximate value of `f{32, 64}::consts::LOG10_2` found
139 --> $DIR/approx_const.rs:51:19
141 LL | let log10_2 = 0.301029995663981;
144 = help: consider using the constant directly
146 error: approximate value of `f{32, 64}::consts::PI` found
147 --> $DIR/approx_const.rs:54:17
149 LL | let my_pi = 3.1415;
152 = help: consider using the constant directly
154 error: approximate value of `f{32, 64}::consts::PI` found
155 --> $DIR/approx_const.rs:55:21
157 LL | let almost_pi = 3.14;
160 = help: consider using the constant directly
162 error: approximate value of `f{32, 64}::consts::SQRT_2` found
163 --> $DIR/approx_const.rs:58:18
165 LL | let my_sq2 = 1.4142;
168 = help: consider using the constant directly
170 error: approximate value of `f{32, 64}::consts::TAU` found
171 --> $DIR/approx_const.rs:61:18
173 LL | let my_tau = 6.2832;
176 = help: consider using the constant directly
178 error: approximate value of `f{32, 64}::consts::TAU` found
179 --> $DIR/approx_const.rs:62:22
181 LL | let almost_tau = 6.28;
184 = help: consider using the constant directly
186 error: aborting due to 23 previous errors