rust/tests/compile-fail/intrinsics/unchecked_sub1.rs

6 lines
166 B
Rust
Raw Normal View History

#![feature(core_intrinsics)]
fn main() {
// MIN overflow
unsafe { std::intrinsics::unchecked_sub(14u32, 22); } //~ ERROR overflow executing `unchecked_sub`
}