]> git.proxmox.com Git - rustc.git/blob - src/test/ui/type-alias-impl-trait/self-referential.stderr
New upstream version 1.64.0+dfsg1
[rustc.git] / src / test / ui / type-alias-impl-trait / self-referential.stderr
1 error[E0277]: can't compare `&i32` with `Bar<'b, 'a>`
2 --> $DIR/self-referential.rs:5:31
3 |
4 LL | fn bar<'a, 'b>(i: &'a i32) -> Bar<'a, 'b> {
5 | ^^^^^^^^^^^ no implementation for `&i32 == Bar<'b, 'a>`
6 LL |
7 LL | i
8 | - return type was inferred to be `&i32` here
9 |
10 = help: the trait `PartialEq<Bar<'b, 'a>>` is not implemented for `&i32`
11 = help: the following other types implement trait `PartialEq<Rhs>`:
12 f32
13 f64
14 i128
15 i16
16 i32
17 i64
18 i8
19 isize
20 and 6 others
21
22 error[E0277]: can't compare `&i32` with `(i32, &i32)`
23 --> $DIR/self-referential.rs:12:31
24 |
25 LL | fn foo<'a, 'b>(i: &'a i32) -> Foo<'a, 'b> {
26 | ^^^^^^^^^^^ no implementation for `&i32 == (i32, &i32)`
27 LL |
28 LL | (42, i)
29 | ------- return type was inferred to be `(i32, &i32)` here
30 |
31 = help: the trait `PartialEq<(i32, &i32)>` is not implemented for `&i32`
32 = help: the following other types implement trait `PartialEq<Rhs>`:
33 f32
34 f64
35 i128
36 i16
37 i32
38 i64
39 i8
40 isize
41 and 6 others
42
43 error[E0277]: can't compare `&i32` with `(i32, Moo<'b, 'a>::{opaque#0})`
44 --> $DIR/self-referential.rs:19:31
45 |
46 LL | fn moo<'a, 'b>(i: &'a i32) -> Moo<'a, 'b> {
47 | ^^^^^^^^^^^ no implementation for `&i32 == (i32, Moo<'b, 'a>::{opaque#0})`
48 LL |
49 LL | (42, i)
50 | ------- return type was inferred to be `(i32, &i32)` here
51 |
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>`:
54 f32
55 f64
56 i128
57 i16
58 i32
59 i64
60 i8
61 isize
62 and 6 others
63
64 error: aborting due to 3 previous errors
65
66 For more information about this error, try `rustc --explain E0277`.