We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3b206b7 commit 8d4841cCopy full SHA for 8d4841c
src/test/ui/lint/force-warn/force-allowed-deny-by-default-lint.rs
@@ -1,10 +1,9 @@
1
-// ignore-test
2
-// compile-flags: --force-warns arithmetic_overflow
+// compile-flags: --force-warns const_err
3
// check-pass
4
5
-#![allow(arithmetic_overflow)]
+#![allow(const_err)]
+const C: i32 = 1 / 0;
6
+//~^ WARN any use of this value will cause an error
7
+//~| WARN this was previously accepted by the compiler
8
-fn main() {
- 1_i32 << 32;
9
- //~^ WARN this arithmetic operation will overflow
10
-}
+fn main() {}
0 commit comments