]>
Commit | Line | Data |
---|---|---|
f9f354fc XL |
1 | error: this operation will panic at runtime |
2 | --> $DIR/mir_detects_invalid_ops.rs:11:14 | |
3 | | | |
4 | LL | let _z = 1 / y; | |
1b1a35ee | 5 | | ^^^^^ attempt to divide `1_i32` by zero |
f9f354fc XL |
6 | | |
7 | = note: `#[deny(unconditional_panic)]` on by default | |
8 | ||
9 | error: this operation will panic at runtime | |
10 | --> $DIR/mir_detects_invalid_ops.rs:16:14 | |
11 | | | |
12 | LL | let _z = 1 % y; | |
1b1a35ee | 13 | | ^^^^^ attempt to calculate the remainder of `1_i32` with a divisor of zero |
f9f354fc | 14 | |
f035d41b | 15 | error: aborting due to 2 previous errors |
f9f354fc | 16 |