]> git.proxmox.com Git - rustc.git/blobdiff - src/test/run-fail/overflowing-lsh-4.rs
Imported Upstream version 1.9.0+dfsg1
[rustc.git] / src / test / run-fail / overflowing-lsh-4.rs
index 571feaeb94345f70b2de1103fa3db812f922a65b..7e8b266da49bee83dcbd81e26ba980107861a028 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+// ignore-pretty : (#23623) problems when  ending with // comments
+
 // error-pattern:thread '<main>' panicked at 'shift operation overflowed'
 // compile-flags: -C debug-assertions
 
@@ -16,6 +18,8 @@
 
 #![warn(exceeding_bitshifts)]
 
+#![feature(rustc_attrs)]
+#[rustc_no_mir] // FIXME #29769 MIR overflow checking is TBD.
 fn main() {
     // this signals overflow when checking is on
     let x = 1_i8 << 17;