blob: 0b6dbfd7c3d85f61c00c4f8aad2a1c3ac1c896fb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
error: this operation will panic at runtime
--> $DIR/mir_detects_invalid_ops.rs:11:14
|
LL | let _z = 1 / y;
| ^^^^^ attempt to divide by zero
|
= 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;
| ^^^^^ attempt to calculate the remainder with a divisor of zero
error: aborting due to 2 previous errors
|