|
| 1 | +error: floating-point arithmetic detected |
| 2 | + --> $DIR/float_arithmetic.rs:16:5 |
| 3 | + | |
| 4 | +LL | f * 2.0; |
| 5 | + | ^^^^^^^ |
| 6 | + | |
| 7 | + = note: `-D clippy::float-arithmetic` implied by `-D warnings` |
| 8 | + |
| 9 | +error: floating-point arithmetic detected |
| 10 | + --> $DIR/float_arithmetic.rs:18:5 |
| 11 | + | |
| 12 | +LL | 1.0 + f; |
| 13 | + | ^^^^^^^ |
| 14 | + |
| 15 | +error: floating-point arithmetic detected |
| 16 | + --> $DIR/float_arithmetic.rs:19:5 |
| 17 | + | |
| 18 | +LL | f * 2.0; |
| 19 | + | ^^^^^^^ |
| 20 | + |
| 21 | +error: floating-point arithmetic detected |
| 22 | + --> $DIR/float_arithmetic.rs:20:5 |
| 23 | + | |
| 24 | +LL | f / 2.0; |
| 25 | + | ^^^^^^^ |
| 26 | + |
| 27 | +error: floating-point arithmetic detected |
| 28 | + --> $DIR/float_arithmetic.rs:21:5 |
| 29 | + | |
| 30 | +LL | f - 2.0 * 4.2; |
| 31 | + | ^^^^^^^^^^^^^ |
| 32 | + |
| 33 | +error: floating-point arithmetic detected |
| 34 | + --> $DIR/float_arithmetic.rs:22:5 |
| 35 | + | |
| 36 | +LL | -f; |
| 37 | + | ^^ |
| 38 | + |
| 39 | +error: floating-point arithmetic detected |
| 40 | + --> $DIR/float_arithmetic.rs:24:5 |
| 41 | + | |
| 42 | +LL | f += 1.0; |
| 43 | + | ^^^^^^^^ |
| 44 | + |
| 45 | +error: floating-point arithmetic detected |
| 46 | + --> $DIR/float_arithmetic.rs:25:5 |
| 47 | + | |
| 48 | +LL | f -= 1.0; |
| 49 | + | ^^^^^^^^ |
| 50 | + |
| 51 | +error: floating-point arithmetic detected |
| 52 | + --> $DIR/float_arithmetic.rs:26:5 |
| 53 | + | |
| 54 | +LL | f *= 2.0; |
| 55 | + | ^^^^^^^^ |
| 56 | + |
| 57 | +error: floating-point arithmetic detected |
| 58 | + --> $DIR/float_arithmetic.rs:27:5 |
| 59 | + | |
| 60 | +LL | f /= 2.0; |
| 61 | + | ^^^^^^^^ |
| 62 | + |
| 63 | +error: floating-point arithmetic detected |
| 64 | + --> $DIR/float_arithmetic.rs:33:5 |
| 65 | + | |
| 66 | +LL | 3.1_f32 + &1.2_f32; |
| 67 | + | ^^^^^^^^^^^^^^^^^^ |
| 68 | + |
| 69 | +error: floating-point arithmetic detected |
| 70 | + --> $DIR/float_arithmetic.rs:34:5 |
| 71 | + | |
| 72 | +LL | &3.4_f32 + 1.5_f32; |
| 73 | + | ^^^^^^^^^^^^^^^^^^ |
| 74 | + |
| 75 | +error: floating-point arithmetic detected |
| 76 | + --> $DIR/float_arithmetic.rs:35:5 |
| 77 | + | |
| 78 | +LL | &3.5_f32 + &1.3_f32; |
| 79 | + | ^^^^^^^^^^^^^^^^^^^ |
| 80 | + |
| 81 | +error: floating-point arithmetic detected |
| 82 | + --> $DIR/float_arithmetic.rs:40:5 |
| 83 | + | |
| 84 | +LL | a + f |
| 85 | + | ^^^^^ |
| 86 | + |
| 87 | +error: floating-point arithmetic detected |
| 88 | + --> $DIR/float_arithmetic.rs:44:5 |
| 89 | + | |
| 90 | +LL | f1 + f2 |
| 91 | + | ^^^^^^^ |
| 92 | + |
| 93 | +error: floating-point arithmetic detected |
| 94 | + --> $DIR/float_arithmetic.rs:48:5 |
| 95 | + | |
| 96 | +LL | f1 + f2 |
| 97 | + | ^^^^^^^ |
| 98 | + |
| 99 | +error: floating-point arithmetic detected |
| 100 | + --> $DIR/float_arithmetic.rs:52:5 |
| 101 | + | |
| 102 | +LL | (&f1 + &f2) |
| 103 | + | ^^^^^^^^^^^ |
| 104 | + |
| 105 | +error: aborting due to 17 previous errors |
| 106 | + |
0 commit comments