1 // run-fail
2 // error-pattern:thread 'main' panicked at 'attempt to negate with overflow'
3 // ignore-emscripten no processes
4 // compile-flags: -C debug-assertions
5 
6 #![allow(arithmetic_overflow)]
7 
main()8 fn main() {
9     let _x = -i8::MIN;
10 }
11