11error: you are using modulo operator on constants with different signs: `-1 % 2`
2- --> $DIR/modulo_arithmetic_integral_const.rs:6 :5
2+ --> $DIR/modulo_arithmetic_integral_const.rs:11 :5
33 |
44LL | -1 % 2;
55 | ^^^^^^
@@ -9,7 +9,7 @@ LL | -1 % 2;
99 = note: or consider using `rem_euclid` or similar function
1010
1111error: you are using modulo operator on constants with different signs: `1 % -2`
12- --> $DIR/modulo_arithmetic_integral_const.rs:7 :5
12+ --> $DIR/modulo_arithmetic_integral_const.rs:12 :5
1313 |
1414LL | 1 % -2;
1515 | ^^^^^^
@@ -18,7 +18,7 @@ LL | 1 % -2;
1818 = note: or consider using `rem_euclid` or similar function
1919
2020error: you are using modulo operator on constants with different signs: `-1 % 3`
21- --> $DIR/modulo_arithmetic_integral_const.rs:8 :5
21+ --> $DIR/modulo_arithmetic_integral_const.rs:13 :5
2222 |
2323LL | (1 - 2) % (1 + 2);
2424 | ^^^^^^^^^^^^^^^^^
@@ -27,7 +27,7 @@ LL | (1 - 2) % (1 + 2);
2727 = note: or consider using `rem_euclid` or similar function
2828
2929error: you are using modulo operator on constants with different signs: `3 % -1`
30- --> $DIR/modulo_arithmetic_integral_const.rs:9 :5
30+ --> $DIR/modulo_arithmetic_integral_const.rs:14 :5
3131 |
3232LL | (1 + 2) % (1 - 2);
3333 | ^^^^^^^^^^^^^^^^^
@@ -36,7 +36,7 @@ LL | (1 + 2) % (1 - 2);
3636 = note: or consider using `rem_euclid` or similar function
3737
3838error: you are using modulo operator on constants with different signs: `-35 % 300000`
39- --> $DIR/modulo_arithmetic_integral_const.rs:10 :5
39+ --> $DIR/modulo_arithmetic_integral_const.rs:15 :5
4040 |
4141LL | 35 * (7 - 4 * 2) % (-500 * -600);
4242 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -45,7 +45,7 @@ LL | 35 * (7 - 4 * 2) % (-500 * -600);
4545 = note: or consider using `rem_euclid` or similar function
4646
4747error: you are using modulo operator on constants with different signs: `-1 % 2`
48- --> $DIR/modulo_arithmetic_integral_const.rs:12 :5
48+ --> $DIR/modulo_arithmetic_integral_const.rs:17 :5
4949 |
5050LL | -1i8 % 2i8;
5151 | ^^^^^^^^^^
@@ -54,7 +54,7 @@ LL | -1i8 % 2i8;
5454 = note: or consider using `rem_euclid` or similar function
5555
5656error: you are using modulo operator on constants with different signs: `1 % -2`
57- --> $DIR/modulo_arithmetic_integral_const.rs:13 :5
57+ --> $DIR/modulo_arithmetic_integral_const.rs:18 :5
5858 |
5959LL | 1i8 % -2i8;
6060 | ^^^^^^^^^^
@@ -63,7 +63,7 @@ LL | 1i8 % -2i8;
6363 = note: or consider using `rem_euclid` or similar function
6464
6565error: you are using modulo operator on constants with different signs: `-1 % 2`
66- --> $DIR/modulo_arithmetic_integral_const.rs:14 :5
66+ --> $DIR/modulo_arithmetic_integral_const.rs:19 :5
6767 |
6868LL | -1i16 % 2i16;
6969 | ^^^^^^^^^^^^
@@ -72,7 +72,7 @@ LL | -1i16 % 2i16;
7272 = note: or consider using `rem_euclid` or similar function
7373
7474error: you are using modulo operator on constants with different signs: `1 % -2`
75- --> $DIR/modulo_arithmetic_integral_const.rs:15 :5
75+ --> $DIR/modulo_arithmetic_integral_const.rs:20 :5
7676 |
7777LL | 1i16 % -2i16;
7878 | ^^^^^^^^^^^^
@@ -81,7 +81,7 @@ LL | 1i16 % -2i16;
8181 = note: or consider using `rem_euclid` or similar function
8282
8383error: you are using modulo operator on constants with different signs: `-1 % 2`
84- --> $DIR/modulo_arithmetic_integral_const.rs:16 :5
84+ --> $DIR/modulo_arithmetic_integral_const.rs:21 :5
8585 |
8686LL | -1i32 % 2i32;
8787 | ^^^^^^^^^^^^
@@ -90,7 +90,7 @@ LL | -1i32 % 2i32;
9090 = note: or consider using `rem_euclid` or similar function
9191
9292error: you are using modulo operator on constants with different signs: `1 % -2`
93- --> $DIR/modulo_arithmetic_integral_const.rs:17 :5
93+ --> $DIR/modulo_arithmetic_integral_const.rs:22 :5
9494 |
9595LL | 1i32 % -2i32;
9696 | ^^^^^^^^^^^^
@@ -99,7 +99,7 @@ LL | 1i32 % -2i32;
9999 = note: or consider using `rem_euclid` or similar function
100100
101101error: you are using modulo operator on constants with different signs: `-1 % 2`
102- --> $DIR/modulo_arithmetic_integral_const.rs:18 :5
102+ --> $DIR/modulo_arithmetic_integral_const.rs:23 :5
103103 |
104104LL | -1i64 % 2i64;
105105 | ^^^^^^^^^^^^
@@ -108,7 +108,7 @@ LL | -1i64 % 2i64;
108108 = note: or consider using `rem_euclid` or similar function
109109
110110error: you are using modulo operator on constants with different signs: `1 % -2`
111- --> $DIR/modulo_arithmetic_integral_const.rs:19 :5
111+ --> $DIR/modulo_arithmetic_integral_const.rs:24 :5
112112 |
113113LL | 1i64 % -2i64;
114114 | ^^^^^^^^^^^^
@@ -117,7 +117,7 @@ LL | 1i64 % -2i64;
117117 = note: or consider using `rem_euclid` or similar function
118118
119119error: you are using modulo operator on constants with different signs: `-1 % 2`
120- --> $DIR/modulo_arithmetic_integral_const.rs:20 :5
120+ --> $DIR/modulo_arithmetic_integral_const.rs:25 :5
121121 |
122122LL | -1i128 % 2i128;
123123 | ^^^^^^^^^^^^^^
@@ -126,7 +126,7 @@ LL | -1i128 % 2i128;
126126 = note: or consider using `rem_euclid` or similar function
127127
128128error: you are using modulo operator on constants with different signs: `1 % -2`
129- --> $DIR/modulo_arithmetic_integral_const.rs:21 :5
129+ --> $DIR/modulo_arithmetic_integral_const.rs:26 :5
130130 |
131131LL | 1i128 % -2i128;
132132 | ^^^^^^^^^^^^^^
@@ -135,7 +135,7 @@ LL | 1i128 % -2i128;
135135 = note: or consider using `rem_euclid` or similar function
136136
137137error: you are using modulo operator on constants with different signs: `-1 % 2`
138- --> $DIR/modulo_arithmetic_integral_const.rs:22 :5
138+ --> $DIR/modulo_arithmetic_integral_const.rs:27 :5
139139 |
140140LL | -1isize % 2isize;
141141 | ^^^^^^^^^^^^^^^^
@@ -144,7 +144,7 @@ LL | -1isize % 2isize;
144144 = note: or consider using `rem_euclid` or similar function
145145
146146error: you are using modulo operator on constants with different signs: `1 % -2`
147- --> $DIR/modulo_arithmetic_integral_const.rs:23 :5
147+ --> $DIR/modulo_arithmetic_integral_const.rs:28 :5
148148 |
149149LL | 1isize % -2isize;
150150 | ^^^^^^^^^^^^^^^^
0 commit comments