45 lines
1.3 KiB
Plaintext
45 lines
1.3 KiB
Plaintext
|
warning: unnecessary parentheses around function argument
|
||
|
--> $DIR/try-block-unused-delims.rs:10:13
|
||
|
|
|
||
|
LL | consume((try {}));
|
||
|
| ^^^^^^^^ help: remove these parentheses
|
||
|
|
|
||
|
note: the lint level is defined here
|
||
|
--> $DIR/try-block-unused-delims.rs:5:9
|
||
|
|
|
||
|
LL | #![warn(unused_parens, unused_braces)]
|
||
|
| ^^^^^^^^^^^^^
|
||
|
|
||
|
warning: unnecessary braces around function argument
|
||
|
--> $DIR/try-block-unused-delims.rs:13:13
|
||
|
|
|
||
|
LL | consume({ try {} });
|
||
|
| ^^^^^^^^^^ help: remove these braces
|
||
|
|
|
||
|
note: the lint level is defined here
|
||
|
--> $DIR/try-block-unused-delims.rs:5:24
|
||
|
|
|
||
|
LL | #![warn(unused_parens, unused_braces)]
|
||
|
| ^^^^^^^^^^^^^
|
||
|
|
||
|
warning: unnecessary parentheses around `match` scrutinee expression
|
||
|
--> $DIR/try-block-unused-delims.rs:16:11
|
||
|
|
|
||
|
LL | match (try {}) {
|
||
|
| ^^^^^^^^ help: remove these parentheses
|
||
|
|
||
|
warning: unnecessary parentheses around `let` scrutinee expression
|
||
|
--> $DIR/try-block-unused-delims.rs:21:22
|
||
|
|
|
||
|
LL | if let Err(()) = (try {}) {}
|
||
|
| ^^^^^^^^ help: remove these parentheses
|
||
|
|
||
|
warning: unnecessary parentheses around `match` scrutinee expression
|
||
|
--> $DIR/try-block-unused-delims.rs:24:11
|
||
|
|
|
||
|
LL | match (try {}) {
|
||
|
| ^^^^^^^^ help: remove these parentheses
|
||
|
|
||
|
warning: 5 warnings emitted
|
||
|
|