diff options
| author | Ryan Levick <me@ryanlevick.com> | 2021-06-02 17:18:52 +0200 |
|---|---|---|
| committer | Ryan Levick <me@ryanlevick.com> | 2021-06-02 17:18:52 +0200 |
| commit | 8d4841cf0efcda254a06d34c4b2da4bdf58de710 (patch) | |
| tree | 27368639aa3092e3d550cbd694c1215523d6d584 /src | |
| parent | 3b206b7a70b8e001f21c823b24f0fa363e920104 (diff) | |
| download | rust-8d4841cf0efcda254a06d34c4b2da4bdf58de710.tar.gz rust-8d4841cf0efcda254a06d34c4b2da4bdf58de710.zip | |
Add final test
Diffstat (limited to 'src')
| -rw-r--r-- | src/test/ui/lint/force-warn/force-allowed-deny-by-default-lint.rs | 13 |
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() {} |
