2020-02-21 03:28:24 -06:00
|
|
|
#![allow(arithmetic_overflow)]
|
2017-03-14 08:24:16 -05:00
|
|
|
|
|
|
|
fn main() {
|
2017-07-03 22:46:21 -05:00
|
|
|
// Make sure we catch overflows that would be hidden by first casting the RHS to u32
|
2020-03-04 06:01:06 -06:00
|
|
|
let _n = 1i64 >> (u32::MAX as i64 + 1);
|
2017-03-14 08:24:16 -05:00
|
|
|
}
|