summaryrefslogtreecommitdiffstats
path: root/tests/ui/fn/fn-compare-mismatch.rs
blob: d734d54e8b0a81dcc6cf24e7ac0bc657c387a4c0 (plain)
1
2
3
4
5
6
7
fn main() {
    fn f() { }
    fn g() { }
    let x = f == g;
    //~^ ERROR binary operation `==` cannot be applied
    //~| ERROR mismatched types
}