File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -2,21 +2,21 @@ error: this operation will panic at runtime
2
2
--> $DIR/modulo_one.rs:11:5
3
3
|
4
4
LL | i32::MIN % (-1); // also caught by rustc
5
- | ^^^^^^^^^^^^^^^ attempt to compute the remainder of `i32::MIN % -1_i32`, which would overflow
5
+ | ^^^^^^^^^^^^^^^ attempt to compute `i32::MIN % -1_i32`, which would overflow
6
6
|
7
7
= note: `#[deny(unconditional_panic)]` on by default
8
8
9
9
error: this operation will panic at runtime
10
10
--> $DIR/modulo_one.rs:21:5
11
11
|
12
12
LL | INT_MIN % NEG_ONE; // also caught by rustc
13
- | ^^^^^^^^^^^^^^^^^ attempt to compute the remainder of `i64::MIN % -1_i64`, which would overflow
13
+ | ^^^^^^^^^^^^^^^^^ attempt to compute `i64::MIN % -1_i64`, which would overflow
14
14
15
15
error: this operation will panic at runtime
16
16
--> $DIR/modulo_one.rs:22:5
17
17
|
18
18
LL | INT_MIN % STATIC_NEG_ONE; // ONLY caught by rustc
19
- | ^^^^^^^^^^^^^^^^^^^^^^^^ attempt to compute the remainder of `i64::MIN % -1_i64`, which would overflow
19
+ | ^^^^^^^^^^^^^^^^^^^^^^^^ attempt to compute `i64::MIN % -1_i64`, which would overflow
20
20
21
21
error: any number modulo 1 will be 0
22
22
--> $DIR/modulo_one.rs:8:5
You can’t perform that action at this time.
0 commit comments