Skip to content

Commit

Permalink
Make warnings into errors
Browse files Browse the repository at this point in the history
  • Loading branch information
varkor committed Oct 18, 2018
1 parent 0a858dc commit 40bba70
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions 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
Expand Down

0 comments on commit 40bba70

Please sign in to comment.