blob: 4a575c3fa7f6a07b8dc7cea36dea130266c03b7b [file] [log] [blame]
// error-pattern:thread 'main' panicked at 'attempt to shift left with overflow'
// compile-flags: -C debug-assertions
#![warn(arithmetic_overflow)]
#![warn(const_err)]
fn main() {
let _x = 1_u64 << 64;
}