]> git.lizzy.rs Git - rust.git/blob - src/test/run-fail/promoted_overflow.rs
Promote `Ref`s to constants instead of static
[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 }