]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/numbers-arithmetic/overflowing-sub.rs
2 // error-pattern:thread 'main' panicked at 'attempt to subtract with overflow'
3 // ignore-emscripten no processes
4 // compile-flags: -C debug-assertions
6 #![allow(arithmetic_overflow)]
9 let _x
= 42u8 - (42u8 + 1);