1
1
error[E0277]: can't compare `&i32` with `Bar<'b, 'a>`
2
- --> $DIR/self-referential.rs:5 :31
2
+ --> $DIR/self-referential.rs:7 :31
3
3
|
4
4
LL | fn bar<'a, 'b>(i: &'a i32) -> Bar<'a, 'b> {
5
5
| ^^^^^^^^^^^ no implementation for `&i32 == Bar<'b, 'a>`
11
11
= help: the trait `PartialEq` is implemented for `i32`
12
12
13
13
error[E0277]: can't compare `&i32` with `(i32, Foo<'a, 'b>::{opaque#0})`
14
- --> $DIR/self-referential.rs:12 :31
14
+ --> $DIR/self-referential.rs:14 :31
15
15
|
16
16
LL | fn foo<'a, 'b>(i: &'a i32) -> Foo<'a, 'b> {
17
17
| ^^^^^^^^^^^ no implementation for `&i32 == (i32, Foo<'a, 'b>::{opaque#0})`
@@ -23,7 +23,7 @@ LL | (42, i)
23
23
= help: the trait `PartialEq` is implemented for `i32`
24
24
25
25
error[E0277]: can't compare `&i32` with `(i32, Moo<'b, 'a>::{opaque#0})`
26
- --> $DIR/self-referential.rs:19 :31
26
+ --> $DIR/self-referential.rs:21 :31
27
27
|
28
28
LL | fn moo<'a, 'b>(i: &'a i32) -> Moo<'a, 'b> {
29
29
| ^^^^^^^^^^^ no implementation for `&i32 == (i32, Moo<'b, 'a>::{opaque#0})`
0 commit comments