]> git.lizzy.rs Git - rust.git/blob - clippy_tests/examples/approx_const.stderr
8ba381289593d4522f216e6e28485e1c5a449e30
[rust.git] / clippy_tests / examples / approx_const.stderr
1 error: approximate value of `f{32, 64}::consts::E` found. Consider using it directly
2  --> approx_const.rs:7:16
3   |
4 7 |     let my_e = 2.7182;
5   |                ^^^^^^
6   |
7   = note: `-D approx-constant` implied by `-D warnings`
8
9 error: approximate value of `f{32, 64}::consts::E` found. Consider using it directly
10  --> approx_const.rs:8:20
11   |
12 8 |     let almost_e = 2.718;
13   |                    ^^^^^
14   |
15   = note: `-D approx-constant` implied by `-D warnings`
16
17 error: approximate value of `f{32, 64}::consts::FRAC_1_PI` found. Consider using it directly
18   --> approx_const.rs:11:24
19    |
20 11 |     let my_1_frac_pi = 0.3183;
21    |                        ^^^^^^
22    |
23    = note: `-D approx-constant` implied by `-D warnings`
24
25 error: approximate value of `f{32, 64}::consts::FRAC_1_SQRT_2` found. Consider using it directly
26   --> approx_const.rs:14:28
27    |
28 14 |     let my_frac_1_sqrt_2 = 0.70710678;
29    |                            ^^^^^^^^^^
30    |
31    = note: `-D approx-constant` implied by `-D warnings`
32
33 error: approximate value of `f{32, 64}::consts::FRAC_1_SQRT_2` found. Consider using it directly
34   --> approx_const.rs:15:32
35    |
36 15 |     let almost_frac_1_sqrt_2 = 0.70711;
37    |                                ^^^^^^^
38    |
39    = note: `-D approx-constant` implied by `-D warnings`
40
41 error: approximate value of `f{32, 64}::consts::FRAC_2_PI` found. Consider using it directly
42   --> approx_const.rs:18:24
43    |
44 18 |     let my_frac_2_pi = 0.63661977;
45    |                        ^^^^^^^^^^
46    |
47    = note: `-D approx-constant` implied by `-D warnings`
48
49 error: approximate value of `f{32, 64}::consts::FRAC_2_SQRT_PI` found. Consider using it directly
50   --> approx_const.rs:21:27
51    |
52 21 |     let my_frac_2_sq_pi = 1.128379;
53    |                           ^^^^^^^^
54    |
55    = note: `-D approx-constant` implied by `-D warnings`
56
57 error: approximate value of `f{32, 64}::consts::FRAC_PI_2` found. Consider using it directly
58   --> approx_const.rs:24:24
59    |
60 24 |     let my_frac_pi_2 = 1.57079632679;
61    |                        ^^^^^^^^^^^^^
62    |
63    = note: `-D approx-constant` implied by `-D warnings`
64
65 error: approximate value of `f{32, 64}::consts::FRAC_PI_3` found. Consider using it directly
66   --> approx_const.rs:27:24
67    |
68 27 |     let my_frac_pi_3 = 1.04719755119;
69    |                        ^^^^^^^^^^^^^
70    |
71    = note: `-D approx-constant` implied by `-D warnings`
72
73 error: approximate value of `f{32, 64}::consts::FRAC_PI_4` found. Consider using it directly
74   --> approx_const.rs:30:24
75    |
76 30 |     let my_frac_pi_4 = 0.785398163397;
77    |                        ^^^^^^^^^^^^^^
78    |
79    = note: `-D approx-constant` implied by `-D warnings`
80
81 error: approximate value of `f{32, 64}::consts::FRAC_PI_6` found. Consider using it directly
82   --> approx_const.rs:33:24
83    |
84 33 |     let my_frac_pi_6 = 0.523598775598;
85    |                        ^^^^^^^^^^^^^^
86    |
87    = note: `-D approx-constant` implied by `-D warnings`
88
89 error: approximate value of `f{32, 64}::consts::FRAC_PI_8` found. Consider using it directly
90   --> approx_const.rs:36:24
91    |
92 36 |     let my_frac_pi_8 = 0.3926990816987;
93    |                        ^^^^^^^^^^^^^^^
94    |
95    = note: `-D approx-constant` implied by `-D warnings`
96
97 error: approximate value of `f{32, 64}::consts::LN_10` found. Consider using it directly
98   --> approx_const.rs:39:20
99    |
100 39 |     let my_ln_10 = 2.302585092994046;
101    |                    ^^^^^^^^^^^^^^^^^
102    |
103    = note: `-D approx-constant` implied by `-D warnings`
104
105 error: approximate value of `f{32, 64}::consts::LN_2` found. Consider using it directly
106   --> approx_const.rs:42:19
107    |
108 42 |     let my_ln_2 = 0.6931471805599453;
109    |                   ^^^^^^^^^^^^^^^^^^
110    |
111    = note: `-D approx-constant` implied by `-D warnings`
112
113 error: approximate value of `f{32, 64}::consts::LOG10_E` found. Consider using it directly
114   --> approx_const.rs:45:22
115    |
116 45 |     let my_log10_e = 0.43429448190325182;
117    |                      ^^^^^^^^^^^^^^^^^^^
118    |
119    = note: `-D approx-constant` implied by `-D warnings`
120
121 error: approximate value of `f{32, 64}::consts::LOG2_E` found. Consider using it directly
122   --> approx_const.rs:48:21
123    |
124 48 |     let my_log2_e = 1.4426950408889634;
125    |                     ^^^^^^^^^^^^^^^^^^
126    |
127    = note: `-D approx-constant` implied by `-D warnings`
128
129 error: approximate value of `f{32, 64}::consts::PI` found. Consider using it directly
130   --> approx_const.rs:51:17
131    |
132 51 |     let my_pi = 3.1415;
133    |                 ^^^^^^
134    |
135    = note: `-D approx-constant` implied by `-D warnings`
136
137 error: approximate value of `f{32, 64}::consts::PI` found. Consider using it directly
138   --> approx_const.rs:52:21
139    |
140 52 |     let almost_pi = 3.14;
141    |                     ^^^^
142    |
143    = note: `-D approx-constant` implied by `-D warnings`
144
145 error: approximate value of `f{32, 64}::consts::SQRT_2` found. Consider using it directly
146   --> approx_const.rs:55:18
147    |
148 55 |     let my_sq2 = 1.4142;
149    |                  ^^^^^^
150    |
151    = note: `-D approx-constant` implied by `-D warnings`
152
153 error: aborting due to previous error(s)
154
155 error: Could not compile `clippy_tests`.
156
157 To learn more, run the command again with --verbose.