2020-04-16 06:50:32 +00:00
|
|
|
// build-fail
|
|
|
|
// compile-flags: -C debug-assertions
|
|
|
|
|
2022-09-21 11:05:20 +00:00
|
|
|
#![deny(arithmetic_overflow)]
|
2020-04-16 06:50:32 +00:00
|
|
|
|
|
|
|
fn main() {
|
|
|
|
let _n = 1i64 >> [64][0];
|
|
|
|
//~^ ERROR: this arithmetic operation will overflow
|
|
|
|
}
|