1
1
error: 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
3
3
|
4
4
LL | -1 % 2;
5
5
| ^^^^^^
@@ -9,7 +9,7 @@ LL | -1 % 2;
9
9
= note: or consider using `rem_euclid` or similar function
10
10
11
11
error: 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
13
13
|
14
14
LL | 1 % -2;
15
15
| ^^^^^^
@@ -18,7 +18,7 @@ LL | 1 % -2;
18
18
= note: or consider using `rem_euclid` or similar function
19
19
20
20
error: 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
22
22
|
23
23
LL | (1 - 2) % (1 + 2);
24
24
| ^^^^^^^^^^^^^^^^^
@@ -27,7 +27,7 @@ LL | (1 - 2) % (1 + 2);
27
27
= note: or consider using `rem_euclid` or similar function
28
28
29
29
error: 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
31
31
|
32
32
LL | (1 + 2) % (1 - 2);
33
33
| ^^^^^^^^^^^^^^^^^
@@ -36,7 +36,7 @@ LL | (1 + 2) % (1 - 2);
36
36
= note: or consider using `rem_euclid` or similar function
37
37
38
38
error: 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
40
40
|
41
41
LL | 35 * (7 - 4 * 2) % (-500 * -600);
42
42
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -45,7 +45,7 @@ LL | 35 * (7 - 4 * 2) % (-500 * -600);
45
45
= note: or consider using `rem_euclid` or similar function
46
46
47
47
error: 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
49
49
|
50
50
LL | -1i8 % 2i8;
51
51
| ^^^^^^^^^^
@@ -54,7 +54,7 @@ LL | -1i8 % 2i8;
54
54
= note: or consider using `rem_euclid` or similar function
55
55
56
56
error: 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
58
58
|
59
59
LL | 1i8 % -2i8;
60
60
| ^^^^^^^^^^
@@ -63,7 +63,7 @@ LL | 1i8 % -2i8;
63
63
= note: or consider using `rem_euclid` or similar function
64
64
65
65
error: 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
67
67
|
68
68
LL | -1i16 % 2i16;
69
69
| ^^^^^^^^^^^^
@@ -72,7 +72,7 @@ LL | -1i16 % 2i16;
72
72
= note: or consider using `rem_euclid` or similar function
73
73
74
74
error: 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
76
76
|
77
77
LL | 1i16 % -2i16;
78
78
| ^^^^^^^^^^^^
@@ -81,7 +81,7 @@ LL | 1i16 % -2i16;
81
81
= note: or consider using `rem_euclid` or similar function
82
82
83
83
error: 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
85
85
|
86
86
LL | -1i32 % 2i32;
87
87
| ^^^^^^^^^^^^
@@ -90,7 +90,7 @@ LL | -1i32 % 2i32;
90
90
= note: or consider using `rem_euclid` or similar function
91
91
92
92
error: 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
94
94
|
95
95
LL | 1i32 % -2i32;
96
96
| ^^^^^^^^^^^^
@@ -99,7 +99,7 @@ LL | 1i32 % -2i32;
99
99
= note: or consider using `rem_euclid` or similar function
100
100
101
101
error: 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
103
103
|
104
104
LL | -1i64 % 2i64;
105
105
| ^^^^^^^^^^^^
@@ -108,7 +108,7 @@ LL | -1i64 % 2i64;
108
108
= note: or consider using `rem_euclid` or similar function
109
109
110
110
error: 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
112
112
|
113
113
LL | 1i64 % -2i64;
114
114
| ^^^^^^^^^^^^
@@ -117,7 +117,7 @@ LL | 1i64 % -2i64;
117
117
= note: or consider using `rem_euclid` or similar function
118
118
119
119
error: 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
121
121
|
122
122
LL | -1i128 % 2i128;
123
123
| ^^^^^^^^^^^^^^
@@ -126,7 +126,7 @@ LL | -1i128 % 2i128;
126
126
= note: or consider using `rem_euclid` or similar function
127
127
128
128
error: 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
130
130
|
131
131
LL | 1i128 % -2i128;
132
132
| ^^^^^^^^^^^^^^
@@ -135,7 +135,7 @@ LL | 1i128 % -2i128;
135
135
= note: or consider using `rem_euclid` or similar function
136
136
137
137
error: 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
139
139
|
140
140
LL | -1isize % 2isize;
141
141
| ^^^^^^^^^^^^^^^^
@@ -144,7 +144,7 @@ LL | -1isize % 2isize;
144
144
= note: or consider using `rem_euclid` or similar function
145
145
146
146
error: 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
148
148
|
149
149
LL | 1isize % -2isize;
150
150
| ^^^^^^^^^^^^^^^^
0 commit comments