1 error[E0277]: can't compare `i32` with `Foo`
2 --> $DIR/self-referential-2.rs:6:13
5 | ^^^ no implementation for `i32 == Foo`
7 | ------ return type was inferred to be `i32` here
9 = help: the trait `PartialEq<Foo>` is not implemented for `i32`
10 = help: the trait `PartialEq` is implemented for `i32`
12 error: aborting due to previous error
14 For more information about this error, try `rustc --explain E0277`.