Files
rust/tests/ui/binop/binary-operation-error-on-function-70724.rs
2025-10-12 00:33:20 -04:00

12 lines
224 B
Rust

// https://github.com/rust-lang/rust/issues/70724
fn a() -> i32 {
3
}
pub fn main() {
assert_eq!(a, 0);
//~^ ERROR binary operation `==` cannot
//~| ERROR mismatched types
//~| ERROR doesn't implement
}