]>
git.proxmox.com Git - rustc.git/blob - src/tools/clippy/tests/ui/approx_const.rs
4 #[warn(approx_constant)]
5 #[allow(unused, shadow_unrelated, similar_names)]
11 let my_1_frac_pi
= 0.3183;
12 let no_1_frac_pi
= 0.31;
14 let my_frac_1_sqrt_2
= 0.70710678;
15 let almost_frac_1_sqrt_2
= 0.70711;
16 let my_frac_1_sqrt_2
= 0.707;
18 let my_frac_2_pi
= 0.63661977;
19 let no_frac_2_pi
= 0.636;
21 let my_frac_2_sq_pi
= 1.128379;
22 let no_frac_2_sq_pi
= 1.128;
24 let my_frac_pi_2
= 1.57079632679;
25 let no_frac_pi_2
= 1.5705;
27 let my_frac_pi_3
= 1.04719755119;
28 let no_frac_pi_3
= 1.047;
30 let my_frac_pi_4
= 0.785398163397;
31 let no_frac_pi_4
= 0.785;
33 let my_frac_pi_6
= 0.523598775598;
34 let no_frac_pi_6
= 0.523;
36 let my_frac_pi_8
= 0.3926990816987;
37 let no_frac_pi_8
= 0.392;
39 let my_ln_10
= 2.302585092994046;
42 let my_ln_2
= 0.6931471805599453;
45 let my_log10_e
= 0.43429448190325182;
46 let no_log10_e
= 0.434;
48 let my_log2_e
= 1.4426950408889634;
49 let no_log2_e
= 1.442;