]> git.lizzy.rs Git - rust.git/blobdiff - src/test/run-fail/divide-by-zero.rs
Add #[rustc_no_mir] to make tests pass with -Z orbit.
[rust.git] / src / test / run-fail / divide-by-zero.rs
index de69b7b9fa6705ed03afd7c07abd96ef49415334..d3817b25d6100f6d364ec3515c20102ad0e7b665 100644 (file)
@@ -8,7 +8,12 @@
 // 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:attempted to divide by zero
+
+#![feature(rustc_attrs)]
+#[rustc_no_mir] // FIXME #29769 MIR overflow checking is TBD.
 fn main() {
     let y = 0;
     let _z = 1 / y;