blob: 74b08b1dfb4e0342487fb96cb27ef716b7f5fc2c [file] [log] [blame]
fn main() {
// MAX overflow
let _val = unsafe { 30000i16.unchecked_sub(-7000) }; //~ ERROR: arithmetic overflow in `unchecked_sub`
}