]> git.lizzy.rs Git - rust.git/blob - src/test/ui/numbers-arithmetic/promoted_overflow.rs
Auto merge of #86155 - alexcrichton:abort-on-unwind, r=nikomatsakis
[rust.git] / src / test / ui / numbers-arithmetic / promoted_overflow.rs
1 #![allow(arithmetic_overflow)]
2
3 // run-fail
4 // error-pattern: overflow
5 // compile-flags: -C overflow-checks=yes
6
7 fn main() {
8     let x: &'static u32 = &(0u32 - 1);
9 }