fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error: you are using modulo operator on constants with different signs: `-1.600 % 2.100` 2 --> $DIR/modulo_arithmetic_float.rs:6:5 3 | 4LL | -1.6 % 2.1; 5 | ^^^^^^^^^^ 6 | 7 = note: double check for expected result especially when interoperating with different languages 8 = note: `-D clippy::modulo-arithmetic` implied by `-D warnings` 9 = help: to override `-D warnings` add `#[allow(clippy::modulo_arithmetic)]` 10 11error: you are using modulo operator on constants with different signs: `1.600 % -2.100` 12 --> $DIR/modulo_arithmetic_float.rs:9:5 13 | 14LL | 1.6 % -2.1; 15 | ^^^^^^^^^^ 16 | 17 = note: double check for expected result especially when interoperating with different languages 18 19error: you are using modulo operator on constants with different signs: `-1.200 % 3.400` 20 --> $DIR/modulo_arithmetic_float.rs:12:5 21 | 22LL | (1.1 - 2.3) % (1.1 + 2.3); 23 | ^^^^^^^^^^^^^^^^^^^^^^^^^ 24 | 25 = note: double check for expected result especially when interoperating with different languages 26 27error: you are using modulo operator on constants with different signs: `3.400 % -1.200` 28 --> $DIR/modulo_arithmetic_float.rs:15:5 29 | 30LL | (1.1 + 2.3) % (1.1 - 2.3); 31 | ^^^^^^^^^^^^^^^^^^^^^^^^^ 32 | 33 = note: double check for expected result especially when interoperating with different languages 34 35error: you are using modulo operator on types that might have different signs 36 --> $DIR/modulo_arithmetic_float.rs:22:5 37 | 38LL | a_f32 % b_f32; 39 | ^^^^^^^^^^^^^ 40 | 41 = note: double check for expected result especially when interoperating with different languages 42 43error: you are using modulo operator on types that might have different signs 44 --> $DIR/modulo_arithmetic_float.rs:25:5 45 | 46LL | b_f32 % a_f32; 47 | ^^^^^^^^^^^^^ 48 | 49 = note: double check for expected result especially when interoperating with different languages 50 51error: you are using modulo operator on types that might have different signs 52 --> $DIR/modulo_arithmetic_float.rs:28:5 53 | 54LL | b_f32 %= a_f32; 55 | ^^^^^^^^^^^^^^ 56 | 57 = note: double check for expected result especially when interoperating with different languages 58 59error: you are using modulo operator on types that might have different signs 60 --> $DIR/modulo_arithmetic_float.rs:34:5 61 | 62LL | a_f64 % b_f64; 63 | ^^^^^^^^^^^^^ 64 | 65 = note: double check for expected result especially when interoperating with different languages 66 67error: you are using modulo operator on types that might have different signs 68 --> $DIR/modulo_arithmetic_float.rs:37:5 69 | 70LL | b_f64 % a_f64; 71 | ^^^^^^^^^^^^^ 72 | 73 = note: double check for expected result especially when interoperating with different languages 74 75error: you are using modulo operator on types that might have different signs 76 --> $DIR/modulo_arithmetic_float.rs:40:5 77 | 78LL | b_f64 %= a_f64; 79 | ^^^^^^^^^^^^^^ 80 | 81 = note: double check for expected result especially when interoperating with different languages 82 83error: aborting due to 10 previous errors 84