]> git.lizzy.rs Git - rust.git/blob - src/test/ui/type-alias-impl-trait/self-referential-4.stderr
Auto merge of #95454 - randomicon00:fix95444, r=wesleywiser
[rust.git] / src / test / ui / type-alias-impl-trait / self-referential-4.stderr
1 error[E0277]: can't compare `&i32` with `Bar<'b, 'static>`
2   --> $DIR/self-referential-4.rs:6:5
3    |
4 LL |     i
5    |     ^ no implementation for `&i32 == Bar<'b, 'static>`
6    |
7    = help: the trait `PartialEq<Bar<'b, 'static>>` 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 `Foo<'static, 'b>`
20   --> $DIR/self-referential-4.rs:12:5
21    |
22 LL |     i
23    |     ^ no implementation for `&i32 == Foo<'static, 'b>`
24    |
25    = help: the trait `PartialEq<Foo<'static, 'b>>` 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 `Moo<'static, 'a>`
38   --> $DIR/self-referential-4.rs:18:5
39    |
40 LL |     i
41    |     ^ no implementation for `&i32 == Moo<'static, 'a>`
42    |
43    = help: the trait `PartialEq<Moo<'static, 'a>>` 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`.