fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
492 B16 linesraw
1error: this operation will panic at runtime
2  --> $DIR/mir_detects_invalid_ops.rs:11:14
3   |
4LL |     let _z = 1 / y;
5   |              ^^^^^ attempt to divide `1_i32` by zero
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;
13   |              ^^^^^ attempt to calculate the remainder of `1_i32` with a divisor of zero
14
15error: aborting due to 2 previous errors
16