1 // build-fail 2 // compile-flags: -C debug-assertions 3 4 #![deny(arithmetic_overflow, const_err)] 5 main()6 fn main() { 7 let _x = 1 << -1; 8 //~^ ERROR: this arithmetic operation will overflow 9 } 10