mir_detects_invalid_ops.stderr (rustc-1.45.0-src.tar.xz) | : | mir_detects_invalid_ops.stderr (rustc-1.45.2-src.tar.xz) | ||
---|---|---|---|---|
skipping to change at line 15 | skipping to change at line 15 | |||
| ^^^^^ attempt to divide by zero | | ^^^^^ attempt to divide by zero | |||
| | | | |||
= note: `#[deny(unconditional_panic)]` on by default | = note: `#[deny(unconditional_panic)]` on by default | |||
error: this operation will panic at runtime | error: this operation will panic at runtime | |||
--> $DIR/mir_detects_invalid_ops.rs:16:14 | --> $DIR/mir_detects_invalid_ops.rs:16:14 | |||
| | | | |||
LL | let _z = 1 % y; | LL | let _z = 1 % y; | |||
| ^^^^^ attempt to calculate the remainder with a divisor of zer o | | ^^^^^ attempt to calculate the remainder with a divisor of zer o | |||
error: this operation will panic at runtime | error: aborting due to 2 previous errors | |||
--> $DIR/mir_detects_invalid_ops.rs:22:18 | ||||
| | ||||
LL | let _b = (*a)[3]; | ||||
| ^^^^^^^ index out of bounds: the len is 3 but the index is | ||||
3 | ||||
error: aborting due to 3 previous errors | ||||
End of changes. 1 change blocks. | ||||
0 lines changed or deleted | 0 lines changed or added |