]> git.proxmox.com Git - rustc.git/blame - src/test/run-fail/overflowing-rsh-6.rs
New upstream version 1.43.0+dfsg1
[rustc.git] / src / test / run-fail / overflowing-rsh-6.rs
CommitLineData
5bcae85e 1// error-pattern:thread 'main' panicked at 'attempt to shift right with overflow'
92a42be0 2// compile-flags: -C debug-assertions
223e47cc 3
74b04a01 4#![warn(arithmetic_overflow)]
e74abb32 5#![warn(const_err)]
92a42be0
SL
6#![feature(const_indexing)]
7
8fn main() {
9 let _n = 1i64 >> [64][0];
10}