2019-06-16 04:10:14 -05:00
|
|
|
#![feature(core_intrinsics)]
|
|
|
|
fn main() {
|
|
|
|
// MIN overflow
|
2022-06-21 13:38:02 -05:00
|
|
|
unsafe {
|
2022-06-21 13:40:02 -05:00
|
|
|
std::intrinsics::unchecked_sub(14u32, 22); //~ ERROR overflow executing `unchecked_sub`
|
|
|
|
}
|
2019-06-16 04:10:14 -05:00
|
|
|
}
|