summaryrefslogtreecommitdiffstats
path: root/src/test/ui/expr/if/if-typeck.rs
blob: d8c262bd6b370e1904e62dbef39212f831d7886a (plain)
1
2
3
4
5
6
7
8
9
10
// error-pattern:mismatched types
// issue #513

fn f() { }

fn main() {

    // f is not a bool
    if f { }
}