]> git.lizzy.rs Git - rust.git/blob - tests/ui/lint/unused/issue-74883-unused-paren-baren-yield.stderr
Auto merge of #106503 - cjgillot:remap-nofilter, r=oli-obk
[rust.git] / tests / ui / lint / unused / issue-74883-unused-paren-baren-yield.stderr
1 error: unnecessary parentheses around `let` scrutinee expression
2   --> $DIR/issue-74883-unused-paren-baren-yield.rs:14:29
3    |
4 LL |         while let Some(_) = ({yield}) {}
5    |                             ^       ^
6    |
7 note: the lint level is defined here
8   --> $DIR/issue-74883-unused-paren-baren-yield.rs:3:24
9    |
10 LL | #![deny(unused_braces, unused_parens)]
11    |                        ^^^^^^^^^^^^^
12 help: remove these parentheses
13    |
14 LL -         while let Some(_) = ({yield}) {}
15 LL +         while let Some(_) = {yield} {}
16    |
17
18 error: unnecessary parentheses around `let` scrutinee expression
19   --> $DIR/issue-74883-unused-paren-baren-yield.rs:15:29
20    |
21 LL |         while let Some(_) = ((yield)) {}
22    |                             ^       ^
23    |
24 help: remove these parentheses
25    |
26 LL -         while let Some(_) = ((yield)) {}
27 LL +         while let Some(_) = (yield) {}
28    |
29
30 error: unnecessary braces around block return value
31   --> $DIR/issue-74883-unused-paren-baren-yield.rs:16:10
32    |
33 LL |         {{yield}};
34    |          ^     ^
35    |
36 note: the lint level is defined here
37   --> $DIR/issue-74883-unused-paren-baren-yield.rs:3:9
38    |
39 LL | #![deny(unused_braces, unused_parens)]
40    |         ^^^^^^^^^^^^^
41 help: remove these braces
42    |
43 LL -         {{yield}};
44 LL +         {yield};
45    |
46
47 error: unnecessary parentheses around block return value
48   --> $DIR/issue-74883-unused-paren-baren-yield.rs:17:10
49    |
50 LL |         {( yield )};
51    |          ^^     ^^
52    |
53 help: remove these parentheses
54    |
55 LL -         {( yield )};
56 LL +         {yield};
57    |
58
59 error: unnecessary parentheses around block return value
60   --> $DIR/issue-74883-unused-paren-baren-yield.rs:18:30
61    |
62 LL |         while let Some(_) = {(yield)} {}
63    |                              ^     ^
64    |
65 help: remove these parentheses
66    |
67 LL -         while let Some(_) = {(yield)} {}
68 LL +         while let Some(_) = {yield} {}
69    |
70
71 error: unnecessary braces around block return value
72   --> $DIR/issue-74883-unused-paren-baren-yield.rs:19:30
73    |
74 LL |         while let Some(_) = {{yield}} {}
75    |                              ^     ^
76    |
77 help: remove these braces
78    |
79 LL -         while let Some(_) = {{yield}} {}
80 LL +         while let Some(_) = {yield} {}
81    |
82
83 error: aborting due to 6 previous errors
84