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