9 lines
166 B
Rust
9 lines
166 B
Rust
#![allow(arithmetic_overflow)]
|
|
|
|
// run-fail
|
|
// error-pattern: overflow
|
|
// compile-flags: -C overflow-checks=yes
|
|
|
|
fn main() {
|
|
let x: &'static u32 = &(0u32 - 1);
|
|
}
|