fix ICE by u64::try_from(<u128>)

This commit is contained in:
mojave2 2023-09-17 19:44:25 +08:00
parent f54275f20f
commit 3665a4102b
No known key found for this signature in database
2 changed files with 5 additions and 1 deletions

View file

@ -361,3 +361,7 @@ fn avoid_subtract_overflow(q: u32) {
//~^ ERROR: casting `u32` to `u8` may truncate the value
c as usize;
}
fn issue11426() {
(&42u8 >> 0xa9008fb6c9d81e42_0e25730562a601c8_u128) as usize;
}