]> git.lizzy.rs Git - rust.git/blob - src/test/run-fail/overflowing-rsh-2.rs
Auto merge of #63994 - Centril:refactor-qualify-consts, r=spastorino,oli-obk
[rust.git] / src / test / run-fail / overflowing-rsh-2.rs
1 // error-pattern:thread 'main' panicked at 'attempt to shift right with overflow'
2 // compile-flags: -C debug-assertions
3
4 #![warn(exceeding_bitshifts)]
5
6 fn main() {
7     let _x = -1_i32 >> -1;
8 }