blob: da59e81ed6bf702595c2629a644e180fdcf6e4a5 [file] [log] [blame]
#![allow(arithmetic_overflow)]
// run-fail
// error-pattern: overflow
// compile-flags: -C overflow-checks=yes
fn main() {
let x: &'static u32 = &(0u32 - 1);
}