Skip to content

Commit 40bba70

Browse files
authored
Make warnings into errors
1 parent 0a858dc commit 40bba70

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/test/ui/lint/no-unused-parens-return-block.rs

+3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
// run-pass
22

3+
#![deny(unused_parens)]
4+
#![allow(unreachable_code)]
5+
36
fn main() {
47
match (return) {} // ok
58
if (return) {} // ok

0 commit comments

Comments
 (0)