]> git.lizzy.rs Git - rust.git/blob - src/test/run-fail/promoted_overflow.rs
Auto merge of #68506 - tmandry:rollup-kz9d33v, r=tmandry
[rust.git] / src / test / run-fail / promoted_overflow.rs
1 #![allow(const_err)]
2
3 // error-pattern: overflow
4 // compile-flags: -C overflow-checks=yes
5
6 fn main() {
7     let x: &'static u32 = &(0u32 - 1);
8 }