summaryrefslogtreecommitdiff
path: root/src/test/run-fail/divide-by-zero.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/run-fail/divide-by-zero.rs')
-rw-r--r--src/test/run-fail/divide-by-zero.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/test/run-fail/divide-by-zero.rs b/src/test/run-fail/divide-by-zero.rs
index de69b7b9fa6..d3817b25d61 100644
--- a/src/test/run-fail/divide-by-zero.rs
+++ b/src/test/run-fail/divide-by-zero.rs
@@ -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;