From 8d4841cf0efcda254a06d34c4b2da4bdf58de710 Mon Sep 17 00:00:00 2001 From: Ryan Levick Date: Wed, 2 Jun 2021 17:18:52 +0200 Subject: Add final test --- .../lint/force-warn/force-allowed-deny-by-default-lint.rs | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'src/test') 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() {} -- cgit 1.4.1-3-g733a5