]> git.lizzy.rs Git - rust.git/blob - tests/ui/try-block/try-block-unused-delims.stderr
Rollup merge of #103702 - WaffleLapkin:lift-sized-bounds-from-pointer-methods-where...
[rust.git] / tests / 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    |             ^      ^
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 help: remove these parentheses
13    |
14 LL -     consume((try {}));
15 LL +     consume(try {});
16    |
17
18 warning: unnecessary braces around function argument
19   --> $DIR/try-block-unused-delims.rs:14:13
20    |
21 LL |     consume({ try {} });
22    |             ^^      ^^
23    |
24 note: the lint level is defined here
25   --> $DIR/try-block-unused-delims.rs:6:24
26    |
27 LL | #![warn(unused_parens, unused_braces)]
28    |                        ^^^^^^^^^^^^^
29 help: remove these braces
30    |
31 LL -     consume({ try {} });
32 LL +     consume(try {});
33    |
34
35 warning: unnecessary parentheses around `match` scrutinee expression
36   --> $DIR/try-block-unused-delims.rs:17:11
37    |
38 LL |     match (try {}) {
39    |           ^      ^
40    |
41 help: remove these parentheses
42    |
43 LL -     match (try {}) {
44 LL +     match try {} {
45    |
46
47 warning: unnecessary parentheses around `let` scrutinee expression
48   --> $DIR/try-block-unused-delims.rs:22:22
49    |
50 LL |     if let Err(()) = (try {}) {}
51    |                      ^      ^
52    |
53 help: remove these parentheses
54    |
55 LL -     if let Err(()) = (try {}) {}
56 LL +     if let Err(()) = try {} {}
57    |
58
59 warning: unnecessary parentheses around `match` scrutinee expression
60   --> $DIR/try-block-unused-delims.rs:25:11
61    |
62 LL |     match (try {}) {
63    |           ^      ^
64    |
65 help: remove these parentheses
66    |
67 LL -     match (try {}) {
68 LL +     match try {} {
69    |
70
71 warning: 5 warnings emitted
72