Sign in
rust
/
rust-lang
/
rust
/
refs/heads/beta
/
.
/
tests
/
ui
/
binop
/
binary-operation-error-on-function-70724.rs
blob: 0bbf13761488d0209e6f1d9a403582b99efaa7fb [
file
] [
log
] [
blame
] [
edit
]
// 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
}