fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error: approximate value of `f{32, 64}::consts::E` found 2 --> $DIR/approx_const.rs:4:16 3 | 4LL | let my_e = 2.7182; 5 | ^^^^^^ 6 | 7 = help: consider using the constant directly 8 = note: `-D clippy::approx-constant` implied by `-D warnings` 9 = help: to override `-D warnings` add `#[allow(clippy::approx_constant)]` 10 11error: approximate value of `f{32, 64}::consts::E` found 12 --> $DIR/approx_const.rs:6:20 13 | 14LL | let almost_e = 2.718; 15 | ^^^^^ 16 | 17 = help: consider using the constant directly 18 19error: approximate value of `f{32, 64}::consts::FRAC_1_PI` found 20 --> $DIR/approx_const.rs:10:24 21 | 22LL | let my_1_frac_pi = 0.3183; 23 | ^^^^^^ 24 | 25 = help: consider using the constant directly 26 27error: approximate value of `f{32, 64}::consts::FRAC_1_SQRT_2` found 28 --> $DIR/approx_const.rs:14:28 29 | 30LL | let my_frac_1_sqrt_2 = 0.70710678; 31 | ^^^^^^^^^^ 32 | 33 = help: consider using the constant directly 34 35error: approximate value of `f{32, 64}::consts::FRAC_1_SQRT_2` found 36 --> $DIR/approx_const.rs:16:32 37 | 38LL | let almost_frac_1_sqrt_2 = 0.70711; 39 | ^^^^^^^ 40 | 41 = help: consider using the constant directly 42 43error: approximate value of `f{32, 64}::consts::FRAC_2_PI` found 44 --> $DIR/approx_const.rs:20:24 45 | 46LL | let my_frac_2_pi = 0.63661977; 47 | ^^^^^^^^^^ 48 | 49 = help: consider using the constant directly 50 51error: approximate value of `f{32, 64}::consts::FRAC_2_SQRT_PI` found 52 --> $DIR/approx_const.rs:24:27 53 | 54LL | let my_frac_2_sq_pi = 1.128379; 55 | ^^^^^^^^ 56 | 57 = help: consider using the constant directly 58 59error: approximate value of `f{32, 64}::consts::FRAC_PI_2` found 60 --> $DIR/approx_const.rs:28:24 61 | 62LL | let my_frac_pi_2 = 1.57079632679; 63 | ^^^^^^^^^^^^^ 64 | 65 = help: consider using the constant directly 66 67error: approximate value of `f{32, 64}::consts::FRAC_PI_3` found 68 --> $DIR/approx_const.rs:32:24 69 | 70LL | let my_frac_pi_3 = 1.04719755119; 71 | ^^^^^^^^^^^^^ 72 | 73 = help: consider using the constant directly 74 75error: approximate value of `f{32, 64}::consts::FRAC_PI_4` found 76 --> $DIR/approx_const.rs:36:24 77 | 78LL | let my_frac_pi_4 = 0.785398163397; 79 | ^^^^^^^^^^^^^^ 80 | 81 = help: consider using the constant directly 82 83error: approximate value of `f{32, 64}::consts::FRAC_PI_6` found 84 --> $DIR/approx_const.rs:40:24 85 | 86LL | let my_frac_pi_6 = 0.523598775598; 87 | ^^^^^^^^^^^^^^ 88 | 89 = help: consider using the constant directly 90 91error: approximate value of `f{32, 64}::consts::FRAC_PI_8` found 92 --> $DIR/approx_const.rs:44:24 93 | 94LL | let my_frac_pi_8 = 0.3926990816987; 95 | ^^^^^^^^^^^^^^^ 96 | 97 = help: consider using the constant directly 98 99error: approximate value of `f{32, 64}::consts::LN_10` found 100 --> $DIR/approx_const.rs:48:20 101 | 102LL | let my_ln_10 = 2.302585092994046; 103 | ^^^^^^^^^^^^^^^^^ 104 | 105 = help: consider using the constant directly 106 107error: approximate value of `f{32, 64}::consts::LN_2` found 108 --> $DIR/approx_const.rs:52:19 109 | 110LL | let my_ln_2 = 0.6931471805599453; 111 | ^^^^^^^^^^^^^^^^^^ 112 | 113 = help: consider using the constant directly 114 115error: approximate value of `f{32, 64}::consts::LOG10_E` found 116 --> $DIR/approx_const.rs:56:22 117 | 118LL | let my_log10_e = 0.4342944819032518; 119 | ^^^^^^^^^^^^^^^^^^ 120 | 121 = help: consider using the constant directly 122 123error: approximate value of `f{32, 64}::consts::LOG2_E` found 124 --> $DIR/approx_const.rs:60:21 125 | 126LL | let my_log2_e = 1.4426950408889634; 127 | ^^^^^^^^^^^^^^^^^^ 128 | 129 = help: consider using the constant directly 130 131error: approximate value of `f{32, 64}::consts::LOG2_10` found 132 --> $DIR/approx_const.rs:64:19 133 | 134LL | let log2_10 = 3.321928094887362; 135 | ^^^^^^^^^^^^^^^^^ 136 | 137 = help: consider using the constant directly 138 139error: approximate value of `f{32, 64}::consts::LOG10_2` found 140 --> $DIR/approx_const.rs:68:19 141 | 142LL | let log10_2 = 0.301029995663981; 143 | ^^^^^^^^^^^^^^^^^ 144 | 145 = help: consider using the constant directly 146 147error: approximate value of `f{32, 64}::consts::PI` found 148 --> $DIR/approx_const.rs:72:17 149 | 150LL | let my_pi = 3.1415; 151 | ^^^^^^ 152 | 153 = help: consider using the constant directly 154 155error: approximate value of `f{32, 64}::consts::PI` found 156 --> $DIR/approx_const.rs:74:21 157 | 158LL | let almost_pi = 3.14; 159 | ^^^^ 160 | 161 = help: consider using the constant directly 162 163error: approximate value of `f{32, 64}::consts::SQRT_2` found 164 --> $DIR/approx_const.rs:78:18 165 | 166LL | let my_sq2 = 1.4142; 167 | ^^^^^^ 168 | 169 = help: consider using the constant directly 170 171error: approximate value of `f{32, 64}::consts::TAU` found 172 --> $DIR/approx_const.rs:82:18 173 | 174LL | let my_tau = 6.2832; 175 | ^^^^^^ 176 | 177 = help: consider using the constant directly 178 179error: approximate value of `f{32, 64}::consts::TAU` found 180 --> $DIR/approx_const.rs:84:22 181 | 182LL | let almost_tau = 6.28; 183 | ^^^^ 184 | 185 = help: consider using the constant directly 186 187error: aborting due to 23 previous errors 188