rust/tests/ui/cycle-trait/cycle-error-comparing-function-inside-itself-66667.rs
2025-10-11 21:59:51 -04:00

21 lines
427 B
Rust

// https://github.com/rust-lang/rust/issues/66667
fn first() {
second == 1 //~ ERROR binary operation
//~^ ERROR mismatched types
//~| ERROR mismatched types
}
fn second() {
first == 1 //~ ERROR binary operation
//~^ ERROR mismatched types
//~| ERROR mismatched types
}
fn bar() {
bar == 1 //~ ERROR binary operation
//~^ ERROR mismatched types
//~| ERROR mismatched types
}
fn main() {}