]>
git.proxmox.com Git - rustc.git/blob - tests/ui/numbers-arithmetic/promoted_overflow.rs
1 #![allow(arithmetic_overflow)]
4 // error-pattern: overflow
5 // compile-flags: -C overflow-checks=yes
6 // for some reason, fails to match error string on
7 // wasm32-unknown-unknown with stripped debuginfo and symbols,
9 // compile-flags:-Cstrip=none
12 let x
: &'
static u32 = &(0u32 - 1);