about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/test/ui/lint/force-warn/force-allowed-deny-by-default-lint.rs13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/test/ui/lint/force-warn/force-allowed-deny-by-default-lint.rs b/src/test/ui/lint/force-warn/force-allowed-deny-by-default-lint.rs
index b34fb5d8b84..afd2d6ec322 100644
--- a/src/test/ui/lint/force-warn/force-allowed-deny-by-default-lint.rs
+++ b/src/test/ui/lint/force-warn/force-allowed-deny-by-default-lint.rs
@@ -1,10 +1,9 @@
-// ignore-test
-// compile-flags: --force-warns arithmetic_overflow
+// compile-flags: --force-warns const_err
 // check-pass
 
-#![allow(arithmetic_overflow)]
+#![allow(const_err)]
+const C: i32 = 1 / 0;
+//~^ WARN any use of this value will cause an error
+//~| WARN this was previously accepted by the compiler
 
-fn main() {
-    1_i32 << 32;
-    //~^ WARN this arithmetic operation will overflow
-}
+fn main() {}