]> git.proxmox.com Git - rustc.git/blame - src/test/ui/mir/mir_detects_invalid_ops.stderr
New upstream version 1.48.0~beta.8+dfsg1
[rustc.git] / src / test / ui / mir / mir_detects_invalid_ops.stderr
CommitLineData
f9f354fc
XL
1error: this operation will panic at runtime
2 --> $DIR/mir_detects_invalid_ops.rs:11:14
3 |
4LL | 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
9error: this operation will panic at runtime
10 --> $DIR/mir_detects_invalid_ops.rs:16:14
11 |
12LL | let _z = 1 % y;
1b1a35ee 13 | ^^^^^ attempt to calculate the remainder of `1_i32` with a divisor of zero
f9f354fc 14
f035d41b 15error: aborting due to 2 previous errors
f9f354fc 16