]> git.lizzy.rs Git - rust.git/blob - tests/compile-fail/unchecked_div1.rs
Auto merge of #1159 - divergentdave:shim-seek, r=RalfJung
[rust.git] / tests / compile-fail / unchecked_div1.rs
1 #![feature(core_intrinsics)]
2 fn main() {
3     // MIN/-1 cannot be represented
4     unsafe { std::intrinsics::unchecked_div(i16::min_value(), -1); } //~ ERROR Overflow executing `unchecked_div`
5 }