]> git.lizzy.rs Git - rust.git/blob - src/test/ui/try-block/try-block-unused-delims.stderr
Auto merge of #87284 - Aaron1011:remove-paren-special, r=petrochenkov
[rust.git] / src / test / ui / try-block / try-block-unused-delims.stderr
1 warning: unnecessary parentheses around function argument
2   --> $DIR/try-block-unused-delims.rs:11:13
3    |
4 LL |     consume((try {}));
5    |             ^^^^^^^^ help: remove these parentheses
6    |
7 note: the lint level is defined here
8   --> $DIR/try-block-unused-delims.rs:6:9
9    |
10 LL | #![warn(unused_parens, unused_braces)]
11    |         ^^^^^^^^^^^^^
12
13 warning: unnecessary braces around function argument
14   --> $DIR/try-block-unused-delims.rs:14:13
15    |
16 LL |     consume({ try {} });
17    |             ^^^^^^^^^^ help: remove these braces
18    |
19 note: the lint level is defined here
20   --> $DIR/try-block-unused-delims.rs:6:24
21    |
22 LL | #![warn(unused_parens, unused_braces)]
23    |                        ^^^^^^^^^^^^^
24
25 warning: unnecessary parentheses around `match` scrutinee expression
26   --> $DIR/try-block-unused-delims.rs:17:11
27    |
28 LL |     match (try {}) {
29    |           ^^^^^^^^ help: remove these parentheses
30
31 warning: unnecessary parentheses around `let` scrutinee expression
32   --> $DIR/try-block-unused-delims.rs:22:22
33    |
34 LL |     if let Err(()) = (try {}) {}
35    |                      ^^^^^^^^ help: remove these parentheses
36
37 warning: unnecessary parentheses around `match` scrutinee expression
38   --> $DIR/try-block-unused-delims.rs:25:11
39    |
40 LL |     match (try {}) {
41    |           ^^^^^^^^ help: remove these parentheses
42
43 warning: 5 warnings emitted
44