rust/src/test/ui/try-block/try-block-unused-delims.stderr

45 lines
1.3 KiB
Plaintext
Raw Normal View History

warning: unnecessary parentheses around function argument
2020-07-02 00:32:12 -05:00
--> $DIR/try-block-unused-delims.rs:11:13
|
LL | consume((try {}));
| ^^^^^^^^ help: remove these parentheses
|
note: the lint level is defined here
2020-07-02 00:32:12 -05:00
--> $DIR/try-block-unused-delims.rs:6:9
|
LL | #![warn(unused_parens, unused_braces)]
| ^^^^^^^^^^^^^
warning: unnecessary braces around function argument
2020-07-02 00:32:12 -05:00
--> $DIR/try-block-unused-delims.rs:14:13
|
LL | consume({ try {} });
| ^^^^^^^^^^ help: remove these braces
|
note: the lint level is defined here
2020-07-02 00:32:12 -05:00
--> $DIR/try-block-unused-delims.rs:6:24
|
LL | #![warn(unused_parens, unused_braces)]
| ^^^^^^^^^^^^^
warning: unnecessary parentheses around `match` scrutinee expression
2020-07-02 00:32:12 -05:00
--> $DIR/try-block-unused-delims.rs:17:11
|
LL | match (try {}) {
| ^^^^^^^^ help: remove these parentheses
warning: unnecessary parentheses around `let` scrutinee expression
2020-07-02 00:32:12 -05:00
--> $DIR/try-block-unused-delims.rs:22:22
|
LL | if let Err(()) = (try {}) {}
| ^^^^^^^^ help: remove these parentheses
warning: unnecessary parentheses around `match` scrutinee expression
2020-07-02 00:32:12 -05:00
--> $DIR/try-block-unused-delims.rs:25:11
|
LL | match (try {}) {
| ^^^^^^^^ help: remove these parentheses
warning: 5 warnings emitted