]> git.lizzy.rs Git - rust.git/blob - src/test/run-fail/overflowing-neg.rs
Auto merge of #68506 - tmandry:rollup-kz9d33v, r=tmandry
[rust.git] / src / test / run-fail / overflowing-neg.rs
1 // error-pattern:thread 'main' panicked at 'attempt to negate with overflow'
2 // compile-flags: -C debug-assertions
3
4 #![allow(const_err)]
5
6 fn main() {
7     let _x = -std::i8::MIN;
8 }