Make invalid integer operation messages consistent
This commit is contained in:
parent
6f9a8a7f9b
commit
8eb42ba0fb
71 changed files with 323 additions and 319 deletions
|
|
@ -2,7 +2,7 @@ error: this operation will panic at runtime
|
|||
--> $DIR/mir_detects_invalid_ops.rs:11:14
|
||||
|
|
||||
LL | let _z = 1 / y;
|
||||
| ^^^^^ attempt to divide 1_i32 by zero
|
||||
| ^^^^^ attempt to divide `1_i32` by zero
|
||||
|
|
||||
= note: `#[deny(unconditional_panic)]` on by default
|
||||
|
||||
|
|
@ -10,7 +10,7 @@ error: this operation will panic at runtime
|
|||
--> $DIR/mir_detects_invalid_ops.rs:16:14
|
||||
|
|
||||
LL | let _z = 1 % y;
|
||||
| ^^^^^ attempt to calculate the remainder of 1_i32 with a divisor of zero
|
||||
| ^^^^^ attempt to calculate the remainder of `1_i32` with a divisor of zero
|
||||
|
||||
error: aborting due to 2 previous errors
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue