]> git.lizzy.rs Git - rust.git/blob - src/test/ui/lint/issue-74883-unused-paren-baren-yield.stderr
Auto merge of #84589 - In-line:zircon-thread-name, r=JohnTitor
[rust.git] / src / test / ui / lint / 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    |                             ^^^^^^^^^ help: remove these parentheses
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
13 error: unnecessary parentheses around `let` scrutinee expression
14   --> $DIR/issue-74883-unused-paren-baren-yield.rs:15:29
15    |
16 LL |         while let Some(_) = ((yield)) {}
17    |                             ^^^^^^^^^ help: remove these parentheses
18
19 error: unnecessary braces around block return value
20   --> $DIR/issue-74883-unused-paren-baren-yield.rs:16:10
21    |
22 LL |         {{yield}};
23    |          ^^^^^^^ help: remove these braces
24    |
25 note: the lint level is defined here
26   --> $DIR/issue-74883-unused-paren-baren-yield.rs:3:9
27    |
28 LL | #![deny(unused_braces, unused_parens)]
29    |         ^^^^^^^^^^^^^
30
31 error: unnecessary parentheses around block return value
32   --> $DIR/issue-74883-unused-paren-baren-yield.rs:17:10
33    |
34 LL |         {( yield )};
35    |          ^^^^^^^^^ help: remove these parentheses
36
37 error: unnecessary parentheses around block return value
38   --> $DIR/issue-74883-unused-paren-baren-yield.rs:18:30
39    |
40 LL |         while let Some(_) = {(yield)} {}
41    |                              ^^^^^^^ help: remove these parentheses
42
43 error: unnecessary braces around block return value
44   --> $DIR/issue-74883-unused-paren-baren-yield.rs:19:30
45    |
46 LL |         while let Some(_) = {{yield}} {}
47    |                              ^^^^^^^ help: remove these braces
48
49 error: aborting due to 6 previous errors
50