2020-04-27 17:43:18 -05:00
|
|
|
error: this operation will panic at runtime
|
|
|
|
--> $DIR/mir_detects_invalid_ops.rs:11:14
|
|
|
|
|
|
|
|
|
LL | let _z = 1 / y;
|
2020-09-15 14:34:50 -05:00
|
|
|
| ^^^^^ attempt to divide `1_i32` by zero
|
2020-04-27 17:43:18 -05:00
|
|
|
|
|
|
|
|
= note: `#[deny(unconditional_panic)]` on by default
|
|
|
|
|
|
|
|
error: this operation will panic at runtime
|
|
|
|
--> $DIR/mir_detects_invalid_ops.rs:16:14
|
|
|
|
|
|
|
|
|
LL | let _z = 1 % y;
|
2020-09-15 14:34:50 -05:00
|
|
|
| ^^^^^ attempt to calculate the remainder of `1_i32` with a divisor of zero
|
2020-04-27 17:43:18 -05:00
|
|
|
|
2020-06-22 07:03:18 -05:00
|
|
|
error: aborting due to 2 previous errors
|
2020-04-27 17:43:18 -05:00
|
|
|
|