]> git.lizzy.rs Git - rust.git/blob - src/test/ui/numbers-arithmetic/promoted_overflow_opt.rs
Merge commit '23d11428de3e973b34a5090a78d62887f821c90e' into clippyup
[rust.git] / src / test / ui / numbers-arithmetic / promoted_overflow_opt.rs
1 // run-pass
2 #![allow(const_err)]
3
4 // compile-flags: -O
5
6 fn main() {
7     let x = &(0u32 - 1);
8     assert_eq!(*x, u32::MAX)
9 }