blob: 714d3ebcdb01695bdfd65a8ddf36aaf4f9143c86 [file] [log] [blame]
error[E0308]: mismatched types
--> $DIR/if-typeck.rs:9:8
|
LL | if f { }
| ^ expected bool, found fn item
|
= note: expected type `bool`
found type `fn() {f}`
error: aborting due to previous error
For more information about this error, try `rustc --explain E0308`.