]> git.lizzy.rs Git - rust.git/blob - src/test/run-fail/overflowing-rsh-6.rs
Rollup merge of #65364 - XiangQingW:master, r=estebank
[rust.git] / src / test / run-fail / overflowing-rsh-6.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 #![feature(const_indexing)]
6
7 fn main() {
8     let _n = 1i64 >> [64][0];
9 }