]>
Commit | Line | Data |
---|---|---|
8faf50e0 | 1 | error[E0308]: mismatched types |
0731742a | 2 | --> $DIR/if-typeck.rs:9:8 |
8faf50e0 | 3 | | |
b7449926 | 4 | LL | if f { } |
60c5eb7d | 5 | | ^ expected `bool`, found fn item |
8faf50e0 XL |
6 | | |
7 | = note: expected type `bool` | |
60c5eb7d | 8 | found fn item `fn() {f}` |
8faf50e0 XL |
9 | |
10 | error: aborting due to previous error | |
11 | ||
12 | For more information about this error, try `rustc --explain E0308`. |