]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/issue-91421.stderr
Point (again) to more expressions with their type, even if not fully resolved
[rust.git] / src / test / ui / parser / issue-91421.stderr
1 error: this `if` expression has a condition, but no block
2   --> $DIR/issue-91421.rs:4:17
3    |
4 LL |     let value = if true && {
5    |                 ^^
6    |
7 help: maybe you forgot the right operand of the condition?
8   --> $DIR/issue-91421.rs:4:25
9    |
10 LL |     let value = if true && {
11    |                         ^^
12
13 error[E0308]: mismatched types
14   --> $DIR/issue-91421.rs:7:9
15    |
16 LL |         3
17    |         ^ expected `bool`, found integer
18
19 error: aborting due to 2 previous errors
20
21 For more information about this error, try `rustc --explain E0308`.