1 error[E0277]: can't compare `&i32` with `Bar<'b, 'static>`
2 --> $DIR/self-referential-4.rs:5:31
4 LL | fn bar<'a, 'b>(i: &'a i32) -> Bar<'a, 'b> {
5 | ^^^^^^^^^^^ no implementation for `&i32 == Bar<'b, 'static>`
7 | - return type was inferred to be `&i32` here
9 = help: the trait `PartialEq<Bar<'b, 'static>>` is not implemented for `&i32`
10 = help: the following other types implement trait `PartialEq<Rhs>`:
21 error[E0277]: can't compare `&i32` with `Foo<'static, 'b>`
22 --> $DIR/self-referential-4.rs:11:31
24 LL | fn foo<'a, 'b>(i: &'a i32) -> Foo<'a, 'b> {
25 | ^^^^^^^^^^^ no implementation for `&i32 == Foo<'static, 'b>`
27 | - return type was inferred to be `&i32` here
29 = help: the trait `PartialEq<Foo<'static, 'b>>` is not implemented for `&i32`
30 = help: the following other types implement trait `PartialEq<Rhs>`:
41 error[E0277]: can't compare `&i32` with `Moo<'static, 'a>`
42 --> $DIR/self-referential-4.rs:17:31
44 LL | fn moo<'a, 'b>(i: &'a i32) -> Moo<'a, 'b> {
45 | ^^^^^^^^^^^ no implementation for `&i32 == Moo<'static, 'a>`
47 | - return type was inferred to be `&i32` here
49 = help: the trait `PartialEq<Moo<'static, 'a>>` is not implemented for `&i32`
50 = help: the following other types implement trait `PartialEq<Rhs>`:
61 error: aborting due to 3 previous errors
63 For more information about this error, try `rustc --explain E0277`.