1 // needed because negating int::MIN will behave differently between
2 // optimized compilation and unoptimized compilation and thus would
3 // lead to different lints being emitted
6 #![feature(rustc_attrs)]
7 #![allow(exceeding_bitshifts)]
11 fn black_box<T>(_: T) {
16 let a = -std::i8::MIN;
18 let b = 200u8 + 200u8 + 200u8;
22 let d = 42u8 - (42u8 + 1);
25 //~^ ERROR index out of bounds