rust/tests/ui/try-block/try-block-unused-delims.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

73 lines
1.7 KiB
Plaintext
Raw Normal View History

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