rust/tests/ui/lint/unused/issue-74883-unused-paren-baren-yield.stderr

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

85 lines
2.2 KiB
Plaintext
Raw Normal View History

error: unnecessary parentheses around `let` scrutinee expression
2020-08-02 11:31:21 -05:00
--> $DIR/issue-74883-unused-paren-baren-yield.rs:14:29
|
LL | while let Some(_) = ({yield}) {}
| ^ ^
|
note: the lint level is defined here
--> $DIR/issue-74883-unused-paren-baren-yield.rs:3:24
|
LL | #![deny(unused_braces, unused_parens)]
| ^^^^^^^^^^^^^
help: remove these parentheses
|
LL - while let Some(_) = ({yield}) {}
LL + while let Some(_) = {yield} {}
2022-06-08 12:34:57 -05:00
|
2020-08-02 11:31:21 -05:00
error: unnecessary parentheses around `let` scrutinee expression
--> $DIR/issue-74883-unused-paren-baren-yield.rs:15:29
|
2020-08-02 11:31:21 -05:00
LL | while let Some(_) = ((yield)) {}
| ^ ^
|
help: remove these parentheses
|
LL - while let Some(_) = ((yield)) {}
LL + while let Some(_) = (yield) {}
2022-06-08 12:34:57 -05:00
|
2020-08-02 11:31:21 -05:00
error: unnecessary braces around block return value
--> $DIR/issue-74883-unused-paren-baren-yield.rs:16:10
|
LL | {{yield}};
| ^ ^
|
note: the lint level is defined here
--> $DIR/issue-74883-unused-paren-baren-yield.rs:3:9
|
LL | #![deny(unused_braces, unused_parens)]
| ^^^^^^^^^^^^^
help: remove these braces
|
LL - {{yield}};
LL + {yield};
2022-06-08 12:34:57 -05:00
|
2020-08-02 11:31:21 -05:00
error: unnecessary parentheses around block return value
--> $DIR/issue-74883-unused-paren-baren-yield.rs:17:10
|
LL | {( yield )};
| ^^ ^^
|
help: remove these parentheses
|
LL - {( yield )};
LL + {yield};
2022-06-08 12:34:57 -05:00
|
2020-08-02 11:31:21 -05:00
error: unnecessary parentheses around block return value
--> $DIR/issue-74883-unused-paren-baren-yield.rs:18:30
2020-08-02 11:31:21 -05:00
|
LL | while let Some(_) = {(yield)} {}
| ^ ^
|
help: remove these parentheses
|
LL - while let Some(_) = {(yield)} {}
LL + while let Some(_) = {yield} {}
2022-06-08 12:34:57 -05:00
|
2020-08-02 11:31:21 -05:00
error: unnecessary braces around block return value
--> $DIR/issue-74883-unused-paren-baren-yield.rs:19:30
2020-08-02 11:31:21 -05:00
|
LL | while let Some(_) = {{yield}} {}
| ^ ^
|
help: remove these braces
|
LL - while let Some(_) = {{yield}} {}
LL + while let Some(_) = {yield} {}
2022-06-08 12:34:57 -05:00
|
2020-08-02 11:31:21 -05:00
error: aborting due to 6 previous errors