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