]> git.lizzy.rs Git - rust.git/blob - src/test/ui/type-alias-impl-trait/self-referential.stderr
Auto merge of #95254 - jyn514:fix-windows-builds, r=Mark-Simulacrum
[rust.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:6:5
3    |
4 LL |     i
5    |     ^ no implementation for `&i32 == Bar<'b, 'a>`
6    |
7    = help: the trait `PartialEq<Bar<'b, 'a>>` is not implemented for `&i32`
8    = help: the following other types implement trait `PartialEq<Rhs>`:
9              f32
10              f64
11              i128
12              i16
13              i32
14              i64
15              i8
16              isize
17            and 6 others
18
19 error[E0277]: can't compare `&i32` with `(i32, &i32)`
20   --> $DIR/self-referential.rs:12:10
21    |
22 LL |     (42, i)
23    |          ^ no implementation for `&i32 == (i32, &i32)`
24    |
25    = help: the trait `PartialEq<(i32, &i32)>` is not implemented for `&i32`
26    = help: the following other types implement trait `PartialEq<Rhs>`:
27              f32
28              f64
29              i128
30              i16
31              i32
32              i64
33              i8
34              isize
35            and 6 others
36
37 error[E0277]: can't compare `&i32` with `(i32, Moo<'b, 'a>::{opaque#0})`
38   --> $DIR/self-referential.rs:18:10
39    |
40 LL |     (42, i)
41    |          ^ no implementation for `&i32 == (i32, Moo<'b, 'a>::{opaque#0})`
42    |
43    = help: the trait `PartialEq<(i32, Moo<'b, 'a>::{opaque#0})>` is not implemented for `&i32`
44    = help: the following other types implement trait `PartialEq<Rhs>`:
45              f32
46              f64
47              i128
48              i16
49              i32
50              i64
51              i8
52              isize
53            and 6 others
54
55 error: aborting due to 3 previous errors
56
57 For more information about this error, try `rustc --explain E0277`.