Error "binary operation ==
cannot be applied to type" -> print note that PartialEq might be missing
#28837
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
The error
should give a note that the PartialEq trait might be missing. In the example below, I couldn't spot for a very long time why the Result<T, StringLikeType> was working but my own error type failed with the error above. Rust beginners like me would enjoy such hints and save time finding simple problems.
Relevant code:
rust/src/librustc_typeck/check/op.rs
Line 190 in 783c3fc
rustc --version --verbose
: rustc 1.5.0-nightly (98df458 2015-10-03)The text was updated successfully, but these errors were encountered: