6 lines
159 B
Rust
6 lines
159 B
Rust
#![feature(unchecked_math)]
|
|
fn main() {
|
|
// MIN overflow
|
|
let _val = unsafe { 14u32.unchecked_sub(22) }; //~ ERROR: overflow executing `unchecked_sub`
|
|
}
|