]>
Commit | Line | Data |
---|---|---|
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 | ||
8 | fn main() { | |
9 | let _n = 1i64 >> [64][0]; | |
10 | } |