]> git.lizzy.rs Git - rust.git/blob - src/test/run-fail/promoted_overflow.rs
Auto merge of #63994 - Centril:refactor-qualify-consts, r=spastorino,oli-obk
[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 }