]> git.lizzy.rs Git - rust.git/blob - src/test/ui/numbers-arithmetic/promoted_overflow_opt.rs
Auto merge of #101679 - compiler-errors:rpitit-default-body, r=nikomatsakis
[rust.git] / src / test / ui / numbers-arithmetic / promoted_overflow_opt.rs
1 // run-pass
2
3 // compile-flags: -O
4
5 fn main() {
6     let x = &(0u32 - 1);
7     assert_eq!(*x, u32::MAX)
8 }