1 error[E0277]: can't compare `&i32` with `Bar<'b, 'a>`
2 --> $DIR/self-referential.rs:5:31
4 LL | fn bar<'a, 'b>(i: &'a i32) -> Bar<'a, 'b> {
5 | ^^^^^^^^^^^ no implementation for `&i32 == Bar<'b, 'a>`
8 | - return type was inferred to be `&i32` here
10 = help: the trait `PartialEq<Bar<'b, 'a>>` is not implemented for `&i32`
11 = help: the following other types implement trait `PartialEq<Rhs>`:
22 error[E0277]: can't compare `&i32` with `(i32, &i32)`
23 --> $DIR/self-referential.rs:12:31
25 LL | fn foo<'a, 'b>(i: &'a i32) -> Foo<'a, 'b> {
26 | ^^^^^^^^^^^ no implementation for `&i32 == (i32, &i32)`
29 | ------- return type was inferred to be `(i32, &i32)` here
31 = help: the trait `PartialEq<(i32, &i32)>` is not implemented for `&i32`
32 = help: the following other types implement trait `PartialEq<Rhs>`:
43 error[E0277]: can't compare `&i32` with `(i32, Moo<'b, 'a>::{opaque#0})`
44 --> $DIR/self-referential.rs:19:31
46 LL | fn moo<'a, 'b>(i: &'a i32) -> Moo<'a, 'b> {
47 | ^^^^^^^^^^^ no implementation for `&i32 == (i32, Moo<'b, 'a>::{opaque#0})`
50 | ------- return type was inferred to be `(i32, &i32)` here
52 = help: the trait `PartialEq<(i32, Moo<'b, 'a>::{opaque#0})>` is not implemented for `&i32`
53 = help: the following other types implement trait `PartialEq<Rhs>`:
64 error: aborting due to 3 previous errors
66 For more information about this error, try `rustc --explain E0277`.