]> git.lizzy.rs Git - rust.git/blob - src/test/ui/fn/fn-compare-mismatch.rs
Auto merge of #81507 - weiznich:add_diesel_to_cargo_test, r=Mark-Simulacrum
[rust.git] / src / test / ui / fn / fn-compare-mismatch.rs
1 fn main() {
2     fn f() { }
3     fn g() { }
4     let x = f == g;
5     //~^ ERROR binary operation `==` cannot be applied
6     //~| ERROR mismatched types
7 }