1 error: this operation will panic at runtime
2 --> $DIR/modulo_one.rs:11:5
4 LL | i32::MIN % (-1); // also caught by rustc
5 | ^^^^^^^^^^^^^^^ attempt to compute the remainder of `i32::MIN % -1_i32`, which would overflow
7 = note: `#[deny(unconditional_panic)]` on by default
9 error: this operation will panic at runtime
10 --> $DIR/modulo_one.rs:21:5
12 LL | INT_MIN % NEG_ONE; // also caught by rustc
13 | ^^^^^^^^^^^^^^^^^ attempt to compute the remainder of `i64::MIN % -1_i64`, which would overflow
15 error: this operation will panic at runtime
16 --> $DIR/modulo_one.rs:22:5
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
21 error: any number modulo 1 will be 0
22 --> $DIR/modulo_one.rs:8:5
27 = note: `-D clippy::modulo-one` implied by `-D warnings`
29 error: any number modulo -1 will panic/overflow or result in 0
30 --> $DIR/modulo_one.rs:9:5
35 error: any number modulo -1 will panic/overflow or result in 0
36 --> $DIR/modulo_one.rs:11:5
38 LL | i32::MIN % (-1); // also caught by rustc
41 error: any number modulo 1 will be 0
42 --> $DIR/modulo_one.rs:17:5
47 error: any number modulo -1 will panic/overflow or result in 0
48 --> $DIR/modulo_one.rs:19:5
53 error: any number modulo -1 will panic/overflow or result in 0
54 --> $DIR/modulo_one.rs:21:5
56 LL | INT_MIN % NEG_ONE; // also caught by rustc
59 error: aborting due to 9 previous errors