]> git.lizzy.rs Git - rust.git/blob - tests/ui/modulo_arithmetic_integral.stderr
Fix `#[expect]` for `clippy::ptr_arg`
[rust.git] / tests / ui / modulo_arithmetic_integral.stderr
1 error: you are using modulo operator on types that might have different signs
2   --> $DIR/modulo_arithmetic_integral.rs:8:5
3    |
4 LL |     a % b;
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    = note: or consider using `rem_euclid` or similar function
10
11 error: you are using modulo operator on types that might have different signs
12   --> $DIR/modulo_arithmetic_integral.rs:9:5
13    |
14 LL |     b % a;
15    |     ^^^^^
16    |
17    = note: double check for expected result especially when interoperating with different languages
18    = note: or consider using `rem_euclid` or similar function
19
20 error: you are using modulo operator on types that might have different signs
21   --> $DIR/modulo_arithmetic_integral.rs:10:5
22    |
23 LL |     b %= a;
24    |     ^^^^^^
25    |
26    = note: double check for expected result especially when interoperating with different languages
27    = note: or consider using `rem_euclid` or similar function
28
29 error: you are using modulo operator on types that might have different signs
30   --> $DIR/modulo_arithmetic_integral.rs:14:5
31    |
32 LL |     a_i8 % b_i8;
33    |     ^^^^^^^^^^^
34    |
35    = note: double check for expected result especially when interoperating with different languages
36    = note: or consider using `rem_euclid` or similar function
37
38 error: you are using modulo operator on types that might have different signs
39   --> $DIR/modulo_arithmetic_integral.rs:15:5
40    |
41 LL |     b_i8 %= a_i8;
42    |     ^^^^^^^^^^^^
43    |
44    = note: double check for expected result especially when interoperating with different languages
45    = note: or consider using `rem_euclid` or similar function
46
47 error: you are using modulo operator on types that might have different signs
48   --> $DIR/modulo_arithmetic_integral.rs:19:5
49    |
50 LL |     a_i16 % b_i16;
51    |     ^^^^^^^^^^^^^
52    |
53    = note: double check for expected result especially when interoperating with different languages
54    = note: or consider using `rem_euclid` or similar function
55
56 error: you are using modulo operator on types that might have different signs
57   --> $DIR/modulo_arithmetic_integral.rs:20:5
58    |
59 LL |     b_i16 %= a_i16;
60    |     ^^^^^^^^^^^^^^
61    |
62    = note: double check for expected result especially when interoperating with different languages
63    = note: or consider using `rem_euclid` or similar function
64
65 error: you are using modulo operator on types that might have different signs
66   --> $DIR/modulo_arithmetic_integral.rs:24:5
67    |
68 LL |     a_i32 % b_i32;
69    |     ^^^^^^^^^^^^^
70    |
71    = note: double check for expected result especially when interoperating with different languages
72    = note: or consider using `rem_euclid` or similar function
73
74 error: you are using modulo operator on types that might have different signs
75   --> $DIR/modulo_arithmetic_integral.rs:25:5
76    |
77 LL |     b_i32 %= a_i32;
78    |     ^^^^^^^^^^^^^^
79    |
80    = note: double check for expected result especially when interoperating with different languages
81    = note: or consider using `rem_euclid` or similar function
82
83 error: you are using modulo operator on types that might have different signs
84   --> $DIR/modulo_arithmetic_integral.rs:29:5
85    |
86 LL |     a_i64 % b_i64;
87    |     ^^^^^^^^^^^^^
88    |
89    = note: double check for expected result especially when interoperating with different languages
90    = note: or consider using `rem_euclid` or similar function
91
92 error: you are using modulo operator on types that might have different signs
93   --> $DIR/modulo_arithmetic_integral.rs:30:5
94    |
95 LL |     b_i64 %= a_i64;
96    |     ^^^^^^^^^^^^^^
97    |
98    = note: double check for expected result especially when interoperating with different languages
99    = note: or consider using `rem_euclid` or similar function
100
101 error: you are using modulo operator on types that might have different signs
102   --> $DIR/modulo_arithmetic_integral.rs:34:5
103    |
104 LL |     a_i128 % b_i128;
105    |     ^^^^^^^^^^^^^^^
106    |
107    = note: double check for expected result especially when interoperating with different languages
108    = note: or consider using `rem_euclid` or similar function
109
110 error: you are using modulo operator on types that might have different signs
111   --> $DIR/modulo_arithmetic_integral.rs:35:5
112    |
113 LL |     b_i128 %= a_i128;
114    |     ^^^^^^^^^^^^^^^^
115    |
116    = note: double check for expected result especially when interoperating with different languages
117    = note: or consider using `rem_euclid` or similar function
118
119 error: you are using modulo operator on types that might have different signs
120   --> $DIR/modulo_arithmetic_integral.rs:39:5
121    |
122 LL |     a_isize % b_isize;
123    |     ^^^^^^^^^^^^^^^^^
124    |
125    = note: double check for expected result especially when interoperating with different languages
126    = note: or consider using `rem_euclid` or similar function
127
128 error: you are using modulo operator on types that might have different signs
129   --> $DIR/modulo_arithmetic_integral.rs:40:5
130    |
131 LL |     b_isize %= a_isize;
132    |     ^^^^^^^^^^^^^^^^^^
133    |
134    = note: double check for expected result especially when interoperating with different languages
135    = note: or consider using `rem_euclid` or similar function
136
137 error: you are using modulo operator on types that might have different signs
138   --> $DIR/modulo_arithmetic_integral.rs:44:5
139    |
140 LL |     a % b;
141    |     ^^^^^
142    |
143    = note: double check for expected result especially when interoperating with different languages
144    = note: or consider using `rem_euclid` or similar function
145
146 error: you are using modulo operator on types that might have different signs
147   --> $DIR/modulo_arithmetic_integral.rs:45:5
148    |
149 LL |     b %= a;
150    |     ^^^^^^
151    |
152    = note: double check for expected result especially when interoperating with different languages
153    = note: or consider using `rem_euclid` or similar function
154
155 error: aborting due to 17 previous errors
156