[arithmetic_side_effect]: allow different rhs type

This commit is contained in:
y21 2023-07-13 00:24:10 +02:00
parent 3be3fb7231
commit c5fc61ca94
2 changed files with 7 additions and 2 deletions

View file

@ -481,4 +481,9 @@ pub fn issue_10792() {
let _ = 10 / TWO.c;
}
pub fn issue_11145() {
let mut x: Wrapping<u32> = Wrapping(0_u32);
x += 1;
}
fn main() {}