diff options
| author | varkor <github@varkor.com> | 2018-10-18 10:35:01 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-10-18 10:35:01 +0100 |
| commit | 40bba70823466eb1458a4fd99a4f644411b4eae4 (patch) | |
| tree | 3aaa63dcd946ccdf80763575c0f2b0b2769eb825 | |
| parent | 0a858dc859f828af2c578bcf23418dd14c767f3c (diff) | |
| download | rust-40bba70823466eb1458a4fd99a4f644411b4eae4.tar.gz rust-40bba70823466eb1458a4fd99a4f644411b4eae4.zip | |
Make warnings into errors
| -rw-r--r-- | src/test/ui/lint/no-unused-parens-return-block.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/test/ui/lint/no-unused-parens-return-block.rs b/src/test/ui/lint/no-unused-parens-return-block.rs index fc8dbb743e1..37dc519a204 100644 --- a/src/test/ui/lint/no-unused-parens-return-block.rs +++ b/src/test/ui/lint/no-unused-parens-return-block.rs @@ -1,5 +1,8 @@ // run-pass +#![deny(unused_parens)] +#![allow(unreachable_code)] + fn main() { match (return) {} // ok if (return) {} // ok |
