]> git.lizzy.rs Git - rust.git/blob - src/test/ui/mir/mir_detects_invalid_ops.stderr
Merge commit '40dd3e2b7089b5e96714e064b731f6dbf17c61a9' into sync_cg_clif-2021-05-27
[rust.git] / src / test / ui / mir / mir_detects_invalid_ops.stderr
1 error: this operation will panic at runtime
2   --> $DIR/mir_detects_invalid_ops.rs:11:14
3    |
4 LL |     let _z = 1 / y;
5    |              ^^^^^ attempt to divide `1_i32` by zero
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;
13    |              ^^^^^ attempt to calculate the remainder of `1_i32` with a divisor of zero
14
15 error: aborting due to 2 previous errors
16