]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-66667-function-cmp-cycle.rs
Rollup merge of #100168 - WaffleLapkin:improve_diagnostics_for_missing_type_in_a_cons...
[rust.git] / src / test / ui / issues / issue-66667-function-cmp-cycle.rs
1 fn first() {
2     second == 1 //~ ERROR binary operation
3     //~^ ERROR mismatched types
4 }
5
6 fn second() {
7     first == 1 //~ ERROR binary operation
8     //~^ ERROR mismatched types
9 }
10
11 fn bar() {
12     bar == 1 //~ ERROR binary operation
13     //~^ ERROR mismatched types
14 }
15
16 fn main() {}