1 error: unnecessary parentheses around `return` value
2 --> $DIR/lint-unnecessary-parens.rs:10:12
5 | ^^^ help: remove these parentheses
7 note: the lint level is defined here
8 --> $DIR/lint-unnecessary-parens.rs:1:9
10 LL | #![deny(unused_parens)]
13 error: unnecessary parentheses around `return` value
14 --> $DIR/lint-unnecessary-parens.rs:13:12
16 LL | return (X { y });
17 | ^^^^^^^^^ help: remove these parentheses
19 error: unnecessary parentheses around type
20 --> $DIR/lint-unnecessary-parens.rs:16:42
22 LL | fn unused_parens_around_return_type() -> (u32) {
23 | ^^^^^ help: remove these parentheses
25 error: unnecessary parentheses around block return value
26 --> $DIR/lint-unnecessary-parens.rs:22:9
29 | ^^^ help: remove these parentheses
31 error: unnecessary parentheses around block return value
32 --> $DIR/lint-unnecessary-parens.rs:24:5
35 | ^^^ help: remove these parentheses
37 error: unnecessary parentheses around assigned value
38 --> $DIR/lint-unnecessary-parens.rs:41:27
40 LL | const CONST_ITEM: usize = (10);
41 | ^^^^ help: remove these parentheses
43 error: unnecessary parentheses around assigned value
44 --> $DIR/lint-unnecessary-parens.rs:42:29
46 LL | static STATIC_ITEM: usize = (10);
47 | ^^^^ help: remove these parentheses
49 error: unnecessary parentheses around function argument
50 --> $DIR/lint-unnecessary-parens.rs:46:9
53 | ^^^^^^ help: remove these parentheses
55 error: unnecessary parentheses around `if` condition
56 --> $DIR/lint-unnecessary-parens.rs:48:8
59 | ^^^^^^ help: remove these parentheses
61 error: unnecessary parentheses around `while` condition
62 --> $DIR/lint-unnecessary-parens.rs:49:11
65 | ^^^^^^ help: remove these parentheses
67 warning: denote infinite loops with `loop { ... }`
68 --> $DIR/lint-unnecessary-parens.rs:49:5
71 | ^^^^^^^^^^^^ help: use `loop`
73 = note: `#[warn(while_true)]` on by default
75 error: unnecessary parentheses around `match` scrutinee expression
76 --> $DIR/lint-unnecessary-parens.rs:51:11
79 | ^^^^^^ help: remove these parentheses
81 error: unnecessary parentheses around `let` scrutinee expression
82 --> $DIR/lint-unnecessary-parens.rs:54:16
84 LL | if let 1 = (1) {}
85 | ^^^ help: remove these parentheses
87 error: unnecessary parentheses around `let` scrutinee expression
88 --> $DIR/lint-unnecessary-parens.rs:55:19
90 LL | while let 1 = (2) {}
91 | ^^^ help: remove these parentheses
93 error: unnecessary parentheses around method argument
94 --> $DIR/lint-unnecessary-parens.rs:69:24
96 LL | X { y: false }.foo((true));
97 | ^^^^^^ help: remove these parentheses
99 error: unnecessary parentheses around assigned value
100 --> $DIR/lint-unnecessary-parens.rs:71:18
102 LL | let mut _a = (0);
103 | ^^^ help: remove these parentheses
105 error: unnecessary parentheses around assigned value
106 --> $DIR/lint-unnecessary-parens.rs:72:10
109 | ^^^ help: remove these parentheses
111 error: unnecessary parentheses around assigned value
112 --> $DIR/lint-unnecessary-parens.rs:73:11
115 | ^^^ help: remove these parentheses
117 error: aborting due to 17 previous errors