]> git.proxmox.com Git - rustc.git/blob - src/test/run-fail/overflowing-lsh-2.rs
New upstream version 1.43.0+dfsg1
[rustc.git] / src / test / run-fail / overflowing-lsh-2.rs
1 // error-pattern:thread 'main' panicked at 'attempt to shift left with overflow'
2 // compile-flags: -C debug-assertions
3
4 #![warn(arithmetic_overflow)]
5 #![warn(const_err)]
6
7 fn main() {
8 let _x = 1 << -1;
9 }