]> git.lizzy.rs Git - rust.git/blob - src/test/ui/fn/fn-compare-mismatch.rs
Auto merge of #106349 - LeSeulArtichaut:dyn-star-tracking-issue, r=jackh726
[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 }