]> git.lizzy.rs Git - rust.git/blob - tests/ui/parser/issue-103381.stderr
Auto merge of #107478 - compiler-errors:anon-enum-tys-are-ambiguous, r=estebank
[rust.git] / tests / ui / parser / issue-103381.stderr
1 error: unexpected `if` in the condition expression
2   --> $DIR/issue-103381.rs:9:12
3    |
4 LL |     if b && if let Some(x) = x {}
5    |            ^^^^
6    |
7 help: remove the `if`
8    |
9 LL -     if b && if let Some(x) = x {}
10 LL +     if b && let Some(x) = x {}
11    |
12
13 error: unexpected `if` in the condition expression
14   --> $DIR/issue-103381.rs:14:12
15    |
16 LL |     if b && if let None = x {}
17    |            ^^^^
18    |
19 help: remove the `if`
20    |
21 LL -     if b && if let None = x {}
22 LL +     if b && let None = x {}
23    |
24
25 error: unexpected `if` in the condition expression
26   --> $DIR/issue-103381.rs:19:15
27    |
28 LL |     if true && if true { true } else { false };
29    |               ^^^^
30    |
31 help: remove the `if`
32    |
33 LL -     if true && if true { true } else { false };
34 LL +     if true && true { true } else { false };
35    |
36
37 error: unexpected `if` in the condition expression
38   --> $DIR/issue-103381.rs:24:15
39    |
40 LL |     if true && if false { true } else { false };
41    |               ^^^^
42    |
43 help: remove the `if`
44    |
45 LL -     if true && if false { true } else { false };
46 LL +     if true && false { true } else { false };
47    |
48
49 error: aborting due to 4 previous errors
50